java.lang.Object
com.arranger.jarl.base.BaseJarlObject
com.arranger.jarl.stroke.BaseStroke
com.arranger.jarl.stroke.BaseSegmentStroke
com.arranger.jarl.stroke.base.Precision
- 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 Precision
- extends com.arranger.jarl.stroke.BaseSegmentStroke
Precision will draw the shape with various preciseness.
It can make rectangles our of circles for instance...
|
Field Summary |
protected double |
m_end
|
protected double |
m_start
|
|
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_start
protected double m_start
m_end
protected double m_end
Precision
public Precision()
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