java.lang.Object
com.arranger.jarl.base.BaseJarlObject
com.arranger.jarl.stroke.BaseStroke
com.arranger.jarl.stroke.BaseSegmentStroke
com.arranger.jarl.stroke.base.Trace
- All Implemented Interfaces:
- java.lang.Cloneable, com.arranger.jarl.base.IJarlObject, com.arranger.jarl.stroke.IStroke, com.arranger.jarl.stroke.IStrokeDef, com.arranger.jarl.util.IWidgetConfigSegmentFactory
- public class Trace
- extends com.arranger.jarl.stroke.BaseSegmentStroke
Trace traces just a portion of the overall shape
|
Constructor Summary |
Trace()
|
|
Method Summary |
protected void |
addJarlObjectInfo(com.arranger.jarl.base.IJarlObjectInfo jarlObjectInfo)
Override this, and for every field that you're using, call BaseJarlObject.populateInfo(com.arranger.jarl.base.IJarlObjectInfo, java.lang.String, java.lang.String, com.arranger.jarl.base.IJarlObjectInfo.IJarlObjectDisplay)>BaseJarlObject.populateInfo(com.arranger.jarl.base.IJarlObjectInfo, java.lang.String, java.lang.String, com.arranger.jarl.base.IJarlObjectInfo.IJarlObjectDisplay) 55
for example:
populateInfo(jarlObjectInfo, "zOrder", "Z-Order", JarlInfoUtil.PRIMITIVE_DISPLAY);
|
com.arranger.jarl.util.WidgetConfigSegment |
createSegment(org.w3c.dom.Element element)
Create a concrete com.arranger.jarl.util.WidgetConfigSegment based on this element |
protected void |
initAttributes(com.arranger.jarl.base.IContext context)
Always remember some attrs might not be there |
java.awt.Shape |
processShape(com.arranger.jarl.widget.IWidget widget,
com.arranger.jarl.base.IContext context,
java.awt.Graphics2D graphics2D,
java.awt.Shape shape)
This will perform custom drawing of the shape
onto the graphics on behalf of the widget
NB: this will need to interpolate points in between points |
| Methods inherited from class com.arranger.jarl.base.BaseJarlObject |
clone, getConfigElement, getJarlObjectInfo, getName, getZOrder, init, initDef, populateInfo, postCheckTime, preCheckTime, setZOrder |
m_traceLength
protected double m_traceLength
m_offset
protected double m_offset
m_clockwise
protected boolean m_clockwise
m_startTraceLength
protected double m_startTraceLength
m_startOffset
protected double m_startOffset
m_startClockwise
protected boolean m_startClockwise
m_endTraceLength
protected double m_endTraceLength
m_endOffset
protected double m_endOffset
m_endClockwise
protected boolean m_endClockwise
Trace
public Trace()
processShape
public java.awt.Shape processShape(com.arranger.jarl.widget.IWidget widget,
com.arranger.jarl.base.IContext context,
java.awt.Graphics2D graphics2D,
java.awt.Shape shape)
- This will perform custom drawing of the shape
onto the graphics on behalf of the widget
NB: this will need to interpolate points in between points
initAttributes
protected void initAttributes(com.arranger.jarl.base.IContext context)
- Always remember some attrs might not be there
addJarlObjectInfo
protected void addJarlObjectInfo(com.arranger.jarl.base.IJarlObjectInfo jarlObjectInfo)
- Override this, and for every field that you're using, call BaseJarlObject.populateInfo(com.arranger.jarl.base.IJarlObjectInfo, java.lang.String, java.lang.String, com.arranger.jarl.base.IJarlObjectInfo.IJarlObjectDisplay)>
BaseJarlObject.populateInfo(com.arranger.jarl.base.IJarlObjectInfo, java.lang.String, java.lang.String, com.arranger.jarl.base.IJarlObjectInfo.IJarlObjectDisplay) 55
for example:
populateInfo(jarlObjectInfo, "zOrder", "Z-Order", JarlInfoUtil.PRIMITIVE_DISPLAY);
createSegment
public com.arranger.jarl.util.WidgetConfigSegment createSegment(org.w3c.dom.Element element)
- Create a concrete com.arranger.jarl.util.WidgetConfigSegment based on this element