|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.devaki.nextobjects.workspace.models.styles.ClassStyle
This class defines the style of all class-like objects
Field Summary | |
protected java.awt.Color |
backgroundColor
|
protected java.awt.Color |
borderColor
|
static java.awt.datatransfer.DataFlavor |
fieldFlavor
|
protected ObjectView |
myObjectView
|
protected boolean |
textAdjusted
|
Constructor Summary | |
ClassStyle(ClassStyle pClassStyle)
Construct a new 'ClassStyle' object from an other |
|
ClassStyle(ObjectView pObjectView)
Construct a new 'ClassStyle' object with default properties |
|
ClassStyle(ObjectView pObjectView,
java.awt.Color pBackgroundColor,
java.awt.Color pBorderColor,
boolean pTextAdjusted)
Construct a new 'ClassStyle' object |
Method Summary | |
java.awt.Color |
getBackgroundColor()
Get the background color |
java.awt.Color |
getBorderColor()
Get the border color |
ObjectView |
getMyObjectView()
Return the object view to which the style is applied |
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor parFlavor)
Return the object to be used by the clipboard |
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
Return the flavors |
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor parFlavor)
Is the data supported by this class? |
boolean |
isTextAdjusted()
Return wether or not the draw is adjusted to its content |
void |
setBackgroundColor(java.awt.Color pBackgroundColor)
Set the background color |
void |
setBorderColor(java.awt.Color pBorderColor)
Set the border color |
void |
setMyObjectView(ObjectView pObjectView)
Define the object view to which the style is applied |
void |
setTextAdjusted(boolean pTextAdjusted)
Set wether or not the draw is adjusted to its content |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.awt.Color backgroundColor
protected java.awt.Color borderColor
protected boolean textAdjusted
protected ObjectView myObjectView
public static java.awt.datatransfer.DataFlavor fieldFlavor
Constructor Detail |
public ClassStyle(ObjectView pObjectView)
pObjectView
- the context object viewpublic ClassStyle(ObjectView pObjectView, java.awt.Color pBackgroundColor, java.awt.Color pBorderColor, boolean pTextAdjusted)
pObjectView
- the context objectpBackgroundColor
- the background colorpBorderColor
- the border colorpTextAdjusted
- the formatpublic ClassStyle(ClassStyle pClassStyle)
pClassStyle
- the context class styleMethod Detail |
public ObjectView getMyObjectView()
public void setMyObjectView(ObjectView pObjectView)
pObjectView
- the object viewpublic java.awt.Color getBackgroundColor()
public void setBackgroundColor(java.awt.Color pBackgroundColor)
pBackgroundColor
- the background colorpublic java.awt.Color getBorderColor()
public void setBorderColor(java.awt.Color pBorderColor)
pBorderColor
- the border colorpublic boolean isTextAdjusted()
public void setTextAdjusted(boolean pTextAdjusted)
pTextAdjusted
- a booleanpublic java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor parFlavor)
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
parFlavor
-
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor parFlavor) throws java.awt.datatransfer.UnsupportedFlavorException
getTransferData
in interface java.awt.datatransfer.Transferable
parFlavor
-
java.awt.datatransfer.UnsupportedFlavorException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |