|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectli.netcat.chart.util.AbstractPart
li.netcat.chart.util.TextPart
li.netcat.chart.util.TagPart
li.netcat.chart.util.InscribePart
Abstract super class of all parts that inscribe the values of a chart.
This part uses the tag concept and is therefore very flexible in its strategy and layout.
For more details, see the super class TagPart
.
The position of the target point is derived from the value location of each data cell. It can be influenced by a relative and an absolute positioning.
Field Summary |
Fields inherited from class li.netcat.chart.util.AbstractPart |
BACKGROUND, FOREGROUND, PERSPECTIVE |
Constructor Summary | |
InscribePart()
Constructs and initializes a new InscribePart . |
Method Summary | |
float |
getCrosswisePosition()
Returns the crosswise position of the target point. 0.0f refers to the "left" border of the value, 1.0f to its "right". |
float |
getCrosswiseShift()
Returns the crosswise shifting of the target point in pixel. |
GraphPart |
getGraphPart()
Returns the graph part that gets inscribed by this part. |
float |
getLengthwisePosition()
Returns the lengthwise position of the target point. 1.0f refers to the lead of the value location, 0.0f to its tail. |
float |
getLengthwiseShift()
Returns the lengthwise shifting of the target point in pixel. |
Tag[] |
getTags(java.awt.Graphics g)
Subclasses must implement this method to report the list of tags that must be layouted. |
void |
setGraphPart(GraphPart graphPart)
Sets the graph part that gets inscribed by this part. |
void |
setTargetPosition(float lengthwisePosition,
float lengthwiseShift,
float crosswisePosition,
float crosswiseShift)
Sets the positions of the target points. |
Methods inherited from class li.netcat.chart.util.TagPart |
createTag, createTag, createTag, getAdditionalLineLength, getBottom, getLayout, getLeft, getLinePenBox, getPen, getRight, getTagConstraints, getTagManager, getTextPenBox, getTop, setAdditionalLineLength, setInsets, setLinePenBox, setPen, setTagManager, setTextPenBox |
Methods inherited from class li.netcat.chart.util.TextPart |
getTextLook, setTextLook |
Methods inherited from class li.netcat.chart.util.AbstractPart |
getChart, getPerspective, invalidate, setChart, setPerspective |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InscribePart()
InscribePart
.
Method Detail |
public GraphPart getGraphPart()
null
.public void setGraphPart(GraphPart graphPart)
graphPart
- the graph part gets inscribed by this part or null
.public float getLengthwisePosition()
public float getLengthwiseShift()
public float getCrosswisePosition()
public float getCrosswiseShift()
public void setTargetPosition(float lengthwisePosition, float lengthwiseShift, float crosswisePosition, float crosswiseShift)
lengthwisePosition
- The lengthwise position of the target point.
1.0f refers to the lead of the value location, 0.0f to its tail. Other values are also possible.lengthwiseShift
- The shift in lengthwise direction in pixel.crosswisePosition
- The crosswise position of the target point.
0.0f refers to the "left" border of the value, 1.0f to its "right". Lead and trail lie at the crosswise position of 0.5f.public Tag[] getTags(java.awt.Graphics g)
TagPart
getTags
in class TagPart
g
- The relevant graphics object.
null
, but must not contain null
entries.
|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |