|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zfqjava.chart.AbstractNode
com.zfqjava.chart.AbstractLink
com.zfqjava.chart.AxisNode
public class AxisNode
AxisNode provides a axis ndoe.
AxisNode is immutable.
| Constructor Summary | |
|---|---|
AxisNode()
Constructs a axis node. |
|
AxisNode(AxisMode axisMode)
Constructs a axis node with the specified axis mode. |
|
| Method Summary | |
|---|---|
protected void |
configureLinkShape(Shape s,
int x1,
int y1,
int x2,
int y2)
Configure the shape when the link's location has been changed. |
boolean |
contains(int x,
int y)
Determines whether this node contains the specify point. |
protected Shape |
createPaintShape()
Creates the paint shape. |
void |
doLayout()
Layout the children nodes. |
protected void |
drawShape(Graphics2D g,
Shape s)
|
Arrow |
getArrow()
Returns the arrow for this AxisNode. |
AxisMode |
getAxisMode()
Returns the axis mode. |
NumberFormat |
getFormat()
Returns the format for label string. |
ListModel |
getLabelModel()
Returns the label model. |
int |
getMajorTickCount()
Returns the major tick count. |
int |
getMajorTickSpacing()
Returns the major tick spacing. |
int |
getMinorTickCount()
Returns the minor tick count. |
int |
getMinorTickSpacing()
Returns the minor tick spacing. |
int |
getOriginX()
Returns the origin x coordinate. |
int |
getOriginY()
Returns the origin y coordinate. |
Dimension |
getPreferredSize()
Returns the preferred size of this node. |
TickMode |
getTickMode()
Returns the tick mode for this axis node. |
int |
getTinyTickCount()
Returns the tiny tick count. |
int |
getTinyTickSpacing()
Returns the tiny tick spacing. |
boolean |
isLabelPainted()
Returns the major label painted. |
boolean |
isMajorTickPainted()
Returns the major tick painted. |
boolean |
isMinorTickPainted()
Returns the minor tick painted. |
boolean |
isTinyTickPainted()
Returns the tiny tick painted. |
void |
setArrow(Arrow arrow)
Sets the arrow for this AxisNode. |
void |
setFormat(NumberFormat format)
Sets the format for label string. |
void |
setLabelModel(ListModel labelModel)
Sets the label model. |
void |
setLabelPainted(boolean labelPainted)
Sets the major label painted. |
void |
setMajorTickCount(int majorTickCount)
Sets the major tick count. |
void |
setMajorTickPainted(boolean majorTickPainted)
Sets the major tick painted. |
void |
setMajorTickSpacing(int majorTickSpacing)
Sets the major tick spacing. |
void |
setMinorTickCount(int minorTickCount)
Sets the minor tick count. |
void |
setMinorTickPainted(boolean minorTickPainted)
Sets the minor tick painted. |
void |
setMinorTickSpacing(int minorTickSpacing)
Sets the minor tick spacing. |
void |
setOriginX(int x)
Sets the origin x coordinate. |
void |
setOriginY(int y)
Sets the origin y coordinate. |
void |
setTickMode(TickMode tickMode)
Sets the tick mode for this axis node. |
void |
setTinyTickCount(int tinyTickCount)
Sets the tiny tick count. |
void |
setTinyTickPainted(boolean tinyTickPainted)
Sets the tiny tick painted. |
void |
setTinyTickSpacing(int tinyTickSpacing)
Sets the tiny tick spacing. |
| Methods inherited from class com.zfqjava.chart.AbstractLink |
|---|
addArrow, addPoint, configureLinkShape, configureLinkShape, createHandles, getArrowCount, getArrowList, getEndArrow, getEndNode, getEndX, getEndY, getMaxPointCount, getMinPointCount, getPointCount, getPointX, getPointY, getStartArrow, getStartNode, getStartX, getStartY, removeArrow, removePoint, reset, setEndArrow, setEndLocation, setEndNode, setLocation, setStartArrow, setStartLocation, setStartNode, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AxisNode()
public AxisNode(AxisMode axisMode)
| Method Detail |
|---|
public boolean contains(int x,
int y)
Node
contains in interface Nodecontains in class AbstractNodex - the x coordinate of the pointy - the y coordinate of the point
protected Shape createPaintShape()
AbstractNode
createPaintShape in class AbstractNode
protected void configureLinkShape(Shape s,
int x1,
int y1,
int x2,
int y2)
AbstractLink
configureLinkShape in class AbstractLinks - the paint shape of this link.x1 - the start x locationy1 - the start y locationx2 - the end x locationy2 - the end y locationpublic AxisMode getAxisMode()
public void setOriginX(int x)
x - the the origin x coordinatepublic void setOriginY(int y)
y - the the origin y coordinatepublic int getOriginX()
public int getOriginY()
public void setTickMode(TickMode tickMode)
tickMode - the tick modegetTickMode()public TickMode getTickMode()
public void setArrow(Arrow arrow)
AxisNode.
arrow - the arrowgetArrow()public Arrow getArrow()
AxisNode.
public void setMajorTickSpacing(int majorTickSpacing)
majorTickSpacing - the spacinggetMajorTickSpacing()public int getMajorTickSpacing()
setMajorTickSpacing(int)public void setMinorTickSpacing(int minorTickSpacing)
minorTickSpacing - the spacinggetMinorTickSpacing()public int getMinorTickSpacing()
setMinorTickSpacing(int)public void setTinyTickSpacing(int tinyTickSpacing)
tinyTickSpacing - the spacinggetTinyTickSpacing()public int getTinyTickSpacing()
setTinyTickSpacing(int)public void setMajorTickPainted(boolean majorTickPainted)
majorTickPainted - the paintedisMajorTickPainted()public boolean isMajorTickPainted()
setMajorTickPainted(boolean)public void setMinorTickPainted(boolean minorTickPainted)
minorTickPainted - the paintedisMinorTickPainted()public boolean isMinorTickPainted()
setMinorTickPainted(boolean)public void setTinyTickPainted(boolean tinyTickPainted)
tinyTickPainted - the paintedisTinyTickPainted()public boolean isTinyTickPainted()
setTinyTickPainted(boolean)public void setLabelPainted(boolean labelPainted)
labelPainted - the paintedisLabelPainted()public boolean isLabelPainted()
setLabelPainted(boolean)public Dimension getPreferredSize()
Node
getPreferredSize in interface NodegetPreferredSize in class AbstractNode
protected void drawShape(Graphics2D g,
Shape s)
drawShape in class AbstractLinkpublic void doLayout()
Node
doLayout in interface NodedoLayout in class AbstractLinkpublic void setLabelModel(ListModel labelModel)
labelModel - the label modelgetLabelModel()public ListModel getLabelModel()
setLabelModel(javax.swing.ListModel)public void setFormat(NumberFormat format)
format - the format for label stringgetFormat()public NumberFormat getFormat()
setFormat(java.text.NumberFormat)public int getMajorTickCount()
setMajorTickCount(int)public void setMajorTickCount(int majorTickCount)
majorTickCount - the major tick countgetMajorTickCount()public int getMinorTickCount()
setMinorTickCount(int)public void setMinorTickCount(int minorTickCount)
minorTickCount - the minor tick countgetMinorTickCount()public int getTinyTickCount()
setTinyTickCount(int)public void setTinyTickCount(int tinyTickCount)
tinyTickCount - the tiny tick countgetTinyTickCount()
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||