org.devaki.nextobjects.workspace.models.styles
Class LineStyle

java.lang.Object
  extended byorg.devaki.nextobjects.workspace.models.styles.LineStyle
All Implemented Interfaces:
java.io.Serializable, java.awt.datatransfer.Transferable

public class LineStyle
extends java.lang.Object
implements java.awt.datatransfer.Transferable, java.io.Serializable

This class defines the style of all line-like objects

See Also:
Serialized Form

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

lineColor

protected java.awt.Color lineColor

myObjectView

protected ObjectView myObjectView

fieldFlavor

public static java.awt.datatransfer.DataFlavor fieldFlavor
Constructor Detail

LineStyle

public LineStyle(ObjectView pObjectView)
Construct a new 'LineStyle' object with default properties

Parameters:
pObjectView - the context object view

LineStyle

public LineStyle(ObjectView pObjectView,
                 java.awt.Color pLineColor)
Construct a new 'LineStyle' object

Parameters:
pObjectView - the context object
pLineColor - the line color

LineStyle

public LineStyle(LineStyle pLineStyle)
Construct a new 'LineStyle' object from an other

Parameters:
pLineStyle - the context line style
Method Detail

getMyObjectView

public ObjectView getMyObjectView()
Return the object view to which the style is applied

Returns:
the object view

setMyObjectView

public void setMyObjectView(ObjectView pObjectView)
Define the object view to which the style is applied

Parameters:
pObjectView - the object view

getLineColor

public java.awt.Color getLineColor()
Get the line color

Returns:
the line color

setLineColor

public void setLineColor(java.awt.Color pLineColor)
Set the line color

Parameters:
pLineColor - the line color

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Return the flavors

Specified by:
getTransferDataFlavors in interface java.awt.datatransfer.Transferable
Returns:
a table of DataFlavor

isDataFlavorSupported

public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor parFlavor)
Is the data supported by this class?

Specified by:
isDataFlavorSupported in interface java.awt.datatransfer.Transferable
Parameters:
parFlavor -
Returns:
a boolean

getTransferData

public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor parFlavor)
                                 throws java.awt.datatransfer.UnsupportedFlavorException
Return the object to be used by the clipboard

Specified by:
getTransferData in interface java.awt.datatransfer.Transferable
Parameters:
parFlavor -
Returns:
an Object
Throws:
java.awt.datatransfer.UnsupportedFlavorException


Copyright © 2002-2004 devaki.org. All Rights Reserved.