|
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
li.netcat.chart.util.CartesianInscribePart
Represents a straight inscription that looks for example like this:
It can be used to tag a Cartesian graph part.
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 Cartesian value part can be positioned at the top, left, bottom or right of a Cartesian graph part. Be aware that this part might take a lot of space and use a lot of lines depending on the number of data elements.
Field Summary | |
static int |
BOTTOM
Equal to ChartConstants.BOTTOM |
static int |
LEFT
Equal to ChartConstants.LEFT |
static int |
RIGHT
Equal to ChartConstants.RIGHT |
static int |
TOP
Equal to ChartConstants.TOP |
Fields inherited from class li.netcat.chart.util.AbstractPart |
BACKGROUND, FOREGROUND, PERSPECTIVE |
Constructor Summary | |
CartesianInscribePart(CartesianGraphPart cartesianGraphPart)
Constructs a new CartesianInscribePart that tags the given graph part. |
Method Summary | |
CartesianGraphPart |
getCartesianGraphPart()
Returns the Cartesian graph part that gets decorated by this tag part. |
int |
getPosition()
Returns the position of this tag part. |
TagConstraints |
getTagConstraints(java.awt.Graphics g)
This overridden method returns the tag constraints that are used to position all labels. |
void |
setCartesianGraphPart(CartesianGraphPart cartesianGraphPart)
Sets the Cartesian graph part that gets decorated by this tag part. |
void |
setGraphPart(GraphPart graphPart)
Overrides the method of the super class and makes sure that the part is always of instance CartesianGraphPart . |
void |
setPosition(int position)
Sets the position of this tag part. |
Methods inherited from class li.netcat.chart.util.InscribePart |
getCrosswisePosition, getCrosswiseShift, getGraphPart, getLengthwisePosition, getLengthwiseShift, getTags, setTargetPosition |
Methods inherited from class li.netcat.chart.util.TagPart |
createTag, createTag, createTag, getAdditionalLineLength, getBottom, getLayout, getLeft, getLinePenBox, getPen, getRight, 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 |
Field Detail |
public static final int TOP
ChartConstants.TOP
public static final int LEFT
ChartConstants.LEFT
public static final int BOTTOM
ChartConstants.BOTTOM
public static final int RIGHT
ChartConstants.RIGHT
Constructor Detail |
public CartesianInscribePart(CartesianGraphPart cartesianGraphPart)
CartesianInscribePart
that tags the given graph part.
cartesianGraphPart
- The part that gets tagged, might also be null
.Method Detail |
public int getPosition()
TOP
, LEFT
, BOTTOM
or RIGHT
.public void setPosition(int position)
position
- Specify one of TOP
, LEFT
, BOTTOM
or RIGHT
.public CartesianGraphPart getCartesianGraphPart()
null
.public void setCartesianGraphPart(CartesianGraphPart cartesianGraphPart)
cartesianGraphPart
- The Cartesian graph part or null
.public void setGraphPart(GraphPart graphPart)
CartesianGraphPart
. Use the method setCartesianGraphPart(CartesianGraphPart)
for
a better compile time safety.
setGraphPart
in class InscribePart
graphPart
- The graph part. It must be of instance CartesianGraphPart
or null
.public TagConstraints getTagConstraints(java.awt.Graphics g)
getTagConstraints
in class TagPart
g
- The relevant graphics object.
LineTagConstraints
depending on the position.
|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |