|
|||||||||||
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.LineStyle
This class defines the style of all line-like objects
Field Summary | |
static java.awt.datatransfer.DataFlavor |
fieldFlavor
|
protected java.awt.Color |
lineColor
|
protected ObjectView |
myObjectView
|
Constructor Summary | |
LineStyle(LineStyle pLineStyle)
Construct a new 'LineStyle' object from an other |
|
LineStyle(ObjectView pObjectView)
Construct a new 'LineStyle' object with default properties |
|
LineStyle(ObjectView pObjectView,
java.awt.Color pLineColor)
Construct a new 'LineStyle' object |
Method Summary | |
java.awt.Color |
getLineColor()
Get the line 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? |
void |
setLineColor(java.awt.Color pLineColor)
Set the line color |
void |
setMyObjectView(ObjectView pObjectView)
Define the object view to which the style is applied |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.awt.Color lineColor
protected ObjectView myObjectView
public static java.awt.datatransfer.DataFlavor fieldFlavor
Constructor Detail |
public LineStyle(ObjectView pObjectView)
pObjectView
- the context object viewpublic LineStyle(ObjectView pObjectView, java.awt.Color pLineColor)
pObjectView
- the context objectpLineColor
- the line colorpublic LineStyle(LineStyle pLineStyle)
pLineStyle
- the context line styleMethod Detail |
public ObjectView getMyObjectView()
public void setMyObjectView(ObjectView pObjectView)
pObjectView
- the object viewpublic java.awt.Color getLineColor()
public void setLineColor(java.awt.Color pLineColor)
pLineColor
- the line colorpublic 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 |