Class TLcyG2DLineStyle
- All Implemented Interfaces:
ILcdPropertyChangeSource
,ILcdGXYPainterStyle
,Serializable
Line style that offers color, selection color, line width, selection line width, antialiasing, line end and line join properties.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
End lines like if you were using a square pen and make sure the actual line length equals the desired line length.static final int
End lines like if you were using a pen with a round tip.static final int
End lines like if you were using a pen with a square tip.static final int
Joins lines like thisstatic final int
Joins lines like thisstatic final int
Joins lines like if you were using a pen with a round tip. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPropertyChangeListener
(PropertyChangeListener aListener) Registers the givenPropertyChangeListener
to be notified when this object's properties change.clone()
getColor()
int
int
int
int
boolean
void
De-registers the givenPropertyChangeListener
from receiving property change events for this object.void
setAntiAliasing
(boolean aAntiAliasing) void
void
setLineEnd
(int aLineEnd) void
setLineJoin
(int aLineJoin) void
setLineWidth
(int aLineWidth) void
setSelectionColor
(Color aSelectionColor) void
setSelectionLineWidth
(int aSelectionLineWidth) void
setupGraphics
(Graphics aGraphics, Object aObject, int aMode, ILcdGXYContext aGXYContext) Set upaGraphics
before painting aObject.
-
Field Details
-
LINE_JOIN_MITER
public static final int LINE_JOIN_MITERJoins lines like this/\ //\\ // \\
- See Also:
-
LINE_JOIN_ROUND
public static final int LINE_JOIN_ROUNDJoins lines like if you were using a pen with a round tip.- See Also:
-
LINE_JOIN_BEVEL
public static final int LINE_JOIN_BEVELJoins lines like this__ //\\ // \\
- See Also:
-
LINE_END_BUTT
public static final int LINE_END_BUTTEnd lines like if you were using a square pen and make sure the actual line length equals the desired line length.- See Also:
-
LINE_END_ROUND
public static final int LINE_END_ROUNDEnd lines like if you were using a pen with a round tip.- See Also:
-
LINE_END_SQUARE
public static final int LINE_END_SQUAREEnd lines like if you were using a pen with a square tip. Stop the center of the pen at the line end, so the actual line length is half the tip size longer, at each side.- See Also:
-
-
Constructor Details
-
TLcyG2DLineStyle
public TLcyG2DLineStyle() -
TLcyG2DLineStyle
-
-
Method Details
-
addPropertyChangeListener
Description copied from interface:ILcdPropertyChangeSource
Registers the given
PropertyChangeListener
to be notified when this object's properties change.In case you need to register a listener which keeps a reference to an object with a shorter life-time than this change source, you can use a
ALcdWeakPropertyChangeListener
instance as property change listener.- Specified by:
addPropertyChangeListener
in interfaceILcdPropertyChangeSource
- Parameters:
aListener
- The listener to be notified- See Also:
-
removePropertyChangeListener
Description copied from interface:ILcdPropertyChangeSource
De-registers the given
PropertyChangeListener
from receiving property change events for this object.If the listener was added more than once, it will be notified one less time after being removed. If the listener is
null
, or was never added, no exception is thrown and no action is taken.- Specified by:
removePropertyChangeListener
in interfaceILcdPropertyChangeSource
- Parameters:
aListener
- the listener that should no longer be notified of changes of this object's properties- See Also:
-
getColor
-
setColor
-
getSelectionColor
-
setSelectionColor
-
getLineWidth
public int getLineWidth() -
setLineWidth
public void setLineWidth(int aLineWidth) -
getSelectionLineWidth
public int getSelectionLineWidth() -
setSelectionLineWidth
public void setSelectionLineWidth(int aSelectionLineWidth) -
isAntiAliasing
public boolean isAntiAliasing() -
setAntiAliasing
public void setAntiAliasing(boolean aAntiAliasing) -
getLineJoin
public int getLineJoin() -
setLineJoin
public void setLineJoin(int aLineJoin) -
getLineEnd
public int getLineEnd() -
setLineEnd
public void setLineEnd(int aLineEnd) -
setupGraphics
public void setupGraphics(Graphics aGraphics, Object aObject, int aMode, ILcdGXYContext aGXYContext) Description copied from interface:ILcdGXYPainterStyle
Set upaGraphics
before painting aObject. For example, if(aMode & ILcdGXYPainter.SELECTED) != 0
, you may want to callaGraphics.setColor(Color.red)
for instance, to see the selected representation of a aObject in red.- Specified by:
setupGraphics
in interfaceILcdGXYPainterStyle
- Parameters:
aGraphics
- theGraphics
to set up.aObject
- theObject
to paint.aMode
- the painting mode to consider (defined inILcdGXYPainter
).aGXYContext
- theILcdGXYContext
to consider.- See Also:
-
clone
-