|
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
public abstract class AbstractNode
Node provides a node on chart container.
| Constructor Summary | |
|---|---|
AbstractNode()
|
|
| Method Summary | |
|---|---|
void |
addHandle(Handle handle)
Adds the handle to this node. |
void |
addHandle(Handle handle,
int index)
Adds the handle to this node. |
void |
addLink(Link link)
Adds the link to this node. |
void |
addNode(List nodes)
Adds the nodes to this chart |
void |
addNode(List nodes,
int index)
Adds the nodes to this chart at the specified index |
void |
addNode(Node node)
Adds a node to this node. |
void |
addNode(Node node,
int index)
Adds a node to this node at the specify index. |
Object |
clone()
|
protected void |
configureShape(Shape s)
Configure the shape when the node's bounds has been changed. |
protected void |
configureShape(Shape s,
int x,
int y,
int width,
int height)
Configure the shape when the node's bounds has been changed. |
boolean |
contains(int x,
int y)
Determines whether this node contains the specify point. |
boolean |
contains(int x,
int y,
int width,
int height)
Determines whether this node contains the specify bound. |
boolean |
contains(Rectangle bound)
Determines whether this node contains the specify bound. |
protected List |
createHandles()
Creates the handles for this node. |
protected Shape |
createPaintShape()
Creates the paint shape. |
void |
doLayout()
Layout the children nodes. |
protected void |
drawShape(Graphics2D g,
Shape s)
|
protected void |
fillShape(Graphics2D g,
Shape s)
|
Node |
findNodeAt(int x,
int y)
Finds the node contains the point x, y. |
Rectangle |
getBounds(Rectangle rect)
Returns the node bounds. |
Rectangle |
getCellBounds(Rectangle rect)
Returns the node cell bounds. |
int |
getCenterX()
Returns the x center coordinate. |
int |
getCenterY()
Returns the y center coordinate. |
Chart |
getChart()
Returns the chart container |
Cursor |
getCursor()
Returns the cursor for current node. |
Composite |
getDrawComposite()
Returns the draw composite for current node. |
Paint |
getDrawPaint()
Returns the draw paint for current node. |
Composite |
getFillComposite()
Returns the fill composite for current node. |
Paint |
getFillPaint()
Returns the fill paint for current node. |
Font |
getFont()
Returns the font for current node. |
int |
getHandleCount()
Returns the number of the handle added to this node. |
List |
getHandleList()
Returns a read-only handle list. |
int |
getHeight()
Returns the height. |
Layout |
getLayout()
Returns the layout for this node. |
int |
getLinkCount()
Returns the number of the link added to this node. |
List |
getLinkList()
Returns a read-only link list. |
Object |
getLock()
Returns the lock for this node. |
Insets |
getMargin()
Returns the margin between the node cell bounds and its contents. |
String |
getName()
Returns the node name. |
Node |
getNode(int index)
Returns the node at the specified index. |
int |
getNodeCount()
Returns the number of the nodes in this node. |
List |
getNodeList()
Returns a read-only node list that add into this node. |
Rectangle |
getPaintBounds(Rectangle rect)
Returns the node paint bounds. |
protected Shape |
getPaintShape()
Returns the paint shape for paint. |
Dimension |
getPreferredSize()
Returns the preferred size of this node. |
Composite |
getShadowComposite()
Returns the shadow composite for current node. |
Paint |
getShadowPaint()
Returns the shadow paint. |
AffineTransform |
getShadowTransform()
Returns the shadow transform for current node. |
Stroke |
getStroke()
Returns the stroke for current node. |
String |
getToolTipText()
Returns the tool tip text for this node. |
String |
getToolTipText(int x,
int y)
Returns the tool tip text for the specified point. |
AffineTransform |
getTransform()
Returns the transform for current node. |
Object |
getUserObject()
Returns the user object for this node. |
int |
getWidth()
Returns the width. |
int |
getX()
Returns the x location. |
int |
getY()
Returns the y location. |
int |
indexOfNode(Node node)
Returns the index for the specified node. |
boolean |
intersects(int x,
int y,
int width,
int height)
Tests this node whether intersects the specified bound. |
boolean |
intersects(Rectangle bound)
Tests this node whether intersects the specified bound. |
boolean |
isAdjustable()
Returns the adjustable property. |
boolean |
isCellable()
Returns the cellable property. |
boolean |
isDrawable()
Returns the drawable property. |
boolean |
isEditable()
Returns the editable property. |
boolean |
isEmpty()
Determines whether this node is empty. |
boolean |
isFillable()
Returns the fillable property. |
boolean |
isGroupable()
Returns the groupable property. |
boolean |
isLinkable()
Returns the linkable property. |
boolean |
isMovable()
Returns the movable property. |
boolean |
isPreferredSizeSet()
|
boolean |
isResizable()
Returns the resizable property. |
boolean |
isRotatable()
Returns the rotatable property. |
boolean |
isSelectable()
Returns the selectable property. |
boolean |
isShadowable()
Returns the shadowable property. |
boolean |
isVisible()
Returns the visible property. |
void |
paint(Graphics2D g)
Paints itself. |
protected void |
paintNodes(Graphics2D g)
|
protected String |
paramString()
|
void |
removeAllNode()
Removes all nodes from this node. |
void |
removeHandle(Handle handle)
Removes the handle from this node. |
void |
removeHandle(int index)
Removes the handle from this node. |
void |
removeLink(Link link)
Removes the link from this node. |
void |
removeNode(int index)
Removes the node at the specified index from this node. |
void |
removeNode(List nodes)
Removes the specified nodes. |
void |
removeNode(Node node)
Removes the node from this node. |
void |
repaint()
Repaints itself. |
void |
repaint(int x,
int y,
int width,
int height)
Repaints the specified area. |
void |
repaint(Rectangle bounds)
Repaints the specified area. |
void |
revalidate()
Revalidates itself. |
void |
setAdjustable(boolean b)
Sets the adjustable property. |
void |
setBounds(int x,
int y,
int width,
int height)
Sets the node bounds. |
void |
setBounds(Rectangle bounds)
Sets the node bounds. |
void |
setCellable(boolean b)
Sets the cellable property. |
void |
setCenterLocation(int x,
int y)
Sets the center location. |
void |
setChart(Chart chart)
Sets the chart container. |
void |
setCursor(Cursor c)
Sets the cursor for current node. |
void |
setDrawable(boolean b)
Sets the drawable property. |
void |
setDrawComposite(Composite c)
Sets the draw composite for current node. |
void |
setDrawPaint(Paint p)
Sets the draw paint for current node. |
void |
setEditable(boolean b)
Sets the editable property. |
void |
setFillable(boolean b)
Sets the fillable property. |
void |
setFillComposite(Composite c)
Sets the fill composite for current node. |
void |
setFillPaint(Paint p)
Sets the fill paint for current node. |
void |
setFont(Font f)
Sets the font for current node. |
void |
setGroupable(boolean b)
Sets the groupable property. |
void |
setLayout(Layout layout)
Sets the layout. |
void |
setLinkable(boolean b)
Sets the linkable property. |
void |
setLocation(int x,
int y)
Sets the location. |
void |
setMargin(Insets m)
Sets the margin between the node cell bounds and its contents. |
void |
setMovable(boolean b)
Sets the movable property. |
void |
setName(String name)
Sets the node name. |
protected void |
setPaintShape(Shape paintShape)
Sets the paint shape. |
void |
setPreferredSize(Dimension d)
Sets the preferred size of this node. |
void |
setResizable(boolean b)
Sets the resizable property. |
void |
setRotatable(boolean b)
Sets the rotatable property. |
void |
setSelectable(boolean b)
Sets the selectable property. |
void |
setShadowable(boolean b)
Sets the shadowable property. |
void |
setShadowComposite(Composite c)
Sets the shadow composite for current node. |
void |
setShadowPaint(Paint p)
Sets the shadow paint. |
void |
setShadowTransform(AffineTransform at)
Sets the shadow transform for current node. |
void |
setSize(int width,
int height)
Sets the size. |
void |
setStroke(Stroke s)
Sets the stroke for current node. |
void |
setToolTipText(String toolTipText)
Sets the tool tip text for this node. |
void |
setTransform(AffineTransform at)
Sets the transform for current node. |
void |
setUserObject(Object userObject)
Sets the user object for this node. |
void |
setVisible(boolean b)
Sets the visible property. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractNode()
| Method Detail |
|---|
public final Object getLock()
Node
getLock in interface Nodepublic void setName(String name)
Node
setName in interface Nodename - the node nameNode.getName()public String getName()
Node
getName in interface NodeNode.setName(java.lang.String)public void addLink(Link link)
Node
addLink in interface Nodelink - the link to addNode.removeLink(com.zfqjava.chart.Link)public void removeLink(Link link)
Node
removeLink in interface Nodelink - the link to removeNode.addLink(com.zfqjava.chart.Link)public int getLinkCount()
Node
getLinkCount in interface Nodepublic List getLinkList()
Node
getLinkList in interface Nodepublic void addHandle(Handle handle)
Node
addHandle in interface Nodehandle - the handle to addNode.removeHandle(com.zfqjava.chart.Handle)
public void addHandle(Handle handle,
int index)
Node
addHandle in interface Nodehandle - the handle to addindex - the handle idexNode.removeHandle(com.zfqjava.chart.Handle)public void removeHandle(int index)
Node
removeHandle in interface Nodeindex - the handle at the specified index to removeNode.addHandle(com.zfqjava.chart.Handle)public void removeHandle(Handle handle)
Node
removeHandle in interface Nodehandle - the handle to removeNode.addHandle(com.zfqjava.chart.Handle)public int getHandleCount()
Node
getHandleCount in interface Nodepublic List getHandleList()
Node
getHandleList in interface Nodeprotected List createHandles()
public void addNode(Node node)
Node
addNode in interface Nodenode - a node to add
public void addNode(Node node,
int index)
Node
addNode in interface Nodenode - the node to addindex - the node indexpublic void addNode(List nodes)
Node
addNode in interface Nodenodes - the nodes
public void addNode(List nodes,
int index)
Node
addNode in interface Nodenodes - the nodesindex - the indexpublic void removeNode(List nodes)
Node
removeNode in interface Nodenodes - the nodes to removepublic void removeNode(Node node)
Node
removeNode in interface Nodenode - a node to removepublic void removeNode(int index)
Node
removeNode in interface Nodeindex - the node at the specified indexpublic void removeAllNode()
Node
removeAllNode in interface Nodepublic int getNodeCount()
Node
getNodeCount in interface Nodepublic Node getNode(int index)
Node
getNode in interface Nodepublic int indexOfNode(Node node)
Node
indexOfNode in interface Nodepublic List getNodeList()
Node
getNodeList in interface Nodepublic int getX()
Node
getX in interface Nodepublic int getY()
Node
getY in interface Nodepublic int getWidth()
Node
getWidth in interface Nodepublic int getHeight()
Node
getHeight in interface Nodepublic int getCenterX()
Node
getCenterX in interface Nodepublic int getCenterY()
Node
getCenterY in interface Node
public void setCenterLocation(int x,
int y)
Node
setCenterLocation in interface Nodex - the x locationy - the y location
public void setLocation(int x,
int y)
Node
setLocation in interface Nodex - the x locationy - the y location
public void setSize(int width,
int height)
Node
setSize in interface Nodewidth - the widthheight - the heightpublic void setBounds(Rectangle bounds)
Node
setBounds in interface Nodebounds - the bounds
public void setBounds(int x,
int y,
int width,
int height)
Node
setBounds in interface Nodex - the x locationy - the y locationwidth - the widthheight - the heightprotected Shape createPaintShape()
protected void configureShape(Shape s)
s - the paint shape of this node.
protected void configureShape(Shape s,
int x,
int y,
int width,
int height)
s - the paint shape of this node.x - the x locationy - the y locationwidth - the widthheight - the heightpublic void setPreferredSize(Dimension d)
Node
setPreferredSize in interface Noded - the preferred size of this nodepublic Dimension getPreferredSize()
Node
getPreferredSize in interface Nodepublic boolean isPreferredSizeSet()
isPreferredSizeSet in interface Nodepublic void revalidate()
Node
revalidate in interface Nodepublic void doLayout()
Node
doLayout in interface Nodepublic void setLayout(Layout layout)
Node
setLayout in interface Nodelayout - the layoutNode.getLayout()public Layout getLayout()
Node
getLayout in interface NodeNode.setLayout(com.zfqjava.chart.Layout)
public Node findNodeAt(int x,
int y)
Node
findNodeAt in interface Nodex - the x locationy - the y location
public boolean contains(int x,
int y)
Node
contains in interface Nodex - the x coordinate of the pointy - the y coordinate of the point
public boolean contains(int x,
int y,
int width,
int height)
Node
contains in interface Nodex - the x coordinate of the boundy - the y coordinate of the boundwidth - the width of the boundheight - the height of the bound
public boolean contains(Rectangle bound)
Node
contains in interface Nodebound - the bound
public boolean intersects(int x,
int y,
int width,
int height)
Node
intersects in interface Nodex - the x coordinate of the boundy - the y coordinate of the boundwidth - the width of the boundheight - the height of the boundpublic boolean intersects(Rectangle bound)
Node
intersects in interface Nodebound - the rectangle to determinespublic boolean isEmpty()
Node
isEmpty in interface Nodepublic void setToolTipText(String toolTipText)
Node
setToolTipText in interface NodetoolTipText - the tool tip textNode.getToolTipText(int, int)public String getToolTipText()
Node
getToolTipText in interface NodeNode.setToolTipText(java.lang.String)
public String getToolTipText(int x,
int y)
Node
getToolTipText in interface Nodex - the x coordinate of the pointy - the y coordinate of the point
public Rectangle getBounds(Rectangle rect)
Node
getBounds in interface Noderect - the Rectangle to store node bounds
public Rectangle getPaintBounds(Rectangle rect)
Node
getPaintBounds in interface Noderect - the Rectangle to store node paint bounds
public Rectangle getCellBounds(Rectangle rect)
Node
getCellBounds in interface Noderect - the Rectangle to store node cell bounds
public Insets getMargin()
Node
getMargin in interface NodeInsets object containing the margin valuesNode.setMargin(java.awt.Insets)public void setMargin(Insets m)
Node
setMargin in interface Nodem - an Insets object that defines the space
between node cell bounds and its contentsNode.getMargin()protected void setPaintShape(Shape paintShape)
paintShape - the paint shapeprotected Shape getPaintShape()
public void setCursor(Cursor c)
Node
setCursor in interface Nodec - the cursorNode.getCursor()public Cursor getCursor()
Node
getCursor in interface NodeNode.setCursor(java.awt.Cursor)public void setUserObject(Object userObject)
Node
setUserObject in interface NodeuserObject - the user objectNode.getUserObject()public Object getUserObject()
Node
getUserObject in interface NodeNode.setUserObject(java.lang.Object)public void setChart(Chart chart)
Node
setChart in interface Nodechart - the chart containerNode.getChart()public Chart getChart()
Node
getChart in interface NodeNode.setChart(com.zfqjava.chart.Chart)public void repaint()
Node
repaint in interface Nodepublic void repaint(Rectangle bounds)
Node
repaint in interface Node
public void repaint(int x,
int y,
int width,
int height)
Node
repaint in interface Nodepublic void paint(Graphics2D g)
Node
paint in interface Nodeg - the node Graphics object
protected void drawShape(Graphics2D g,
Shape s)
protected void fillShape(Graphics2D g,
Shape s)
protected void paintNodes(Graphics2D g)
public boolean isResizable()
Noderesizable property.
isResizable in interface NodeNode.setResizable(boolean)public void setResizable(boolean b)
Noderesizable property.
setResizable in interface Nodeb - the resizable propertyNode.isResizable()public boolean isMovable()
Nodemovable property.
isMovable in interface NodeNode.setMovable(boolean)public void setMovable(boolean b)
Nodemovable property.
setMovable in interface Nodeb - the movable propertyNode.isMovable()public boolean isSelectable()
Nodeselectable property.
isSelectable in interface NodeNode.setSelectable(boolean)public boolean isRotatable()
Noderotatable property.
isRotatable in interface NodeNode.setRotatable(boolean)public void setRotatable(boolean b)
Noderotatable property.
setRotatable in interface Nodeb - the rotatable propertyNode.isRotatable()public boolean isAdjustable()
Nodeadjustable property.
isAdjustable in interface NodeNode.setAdjustable(boolean)public void setAdjustable(boolean b)
Nodeadjustable property.
setAdjustable in interface Nodeb - the adjustable propertyNode.isAdjustable()public void setSelectable(boolean b)
Nodeselectable property.
setSelectable in interface Nodeb - the selectable propertyNode.isSelectable()public boolean isEditable()
Nodeeditable property.
isEditable in interface NodeNode.setEditable(boolean)public void setEditable(boolean b)
Nodeeditable property.
setEditable in interface Nodeb - the editable propertyNode.isEditable()public boolean isLinkable()
Nodelinkable property.
isLinkable in interface NodeNode.setLinkable(boolean)public void setLinkable(boolean b)
Nodelinkable property.
setLinkable in interface Nodeb - the linkable propertyNode.isLinkable()public boolean isGroupable()
Nodegroupable property.
isGroupable in interface NodeNode.setGroupable(boolean)public void setGroupable(boolean b)
Nodegroupable property.
setGroupable in interface Nodeb - the groupable propertyNode.isGroupable()public boolean isVisible()
Nodevisible property.
isVisible in interface NodeNode.setVisible(boolean)public void setVisible(boolean b)
Nodevisible property.
setVisible in interface Nodeb - the visible propertyNode.isVisible()public boolean isCellable()
Nodecellable property.
isCellable in interface NodeNode.setCellable(boolean)public void setCellable(boolean b)
Nodecellable property.
setCellable in interface Nodeb - the cellable propertyNode.isCellable()public boolean isShadowable()
Nodeshadowable property.
isShadowable in interface NodeNode.setShadowable(boolean)public void setShadowable(boolean b)
Nodeshadowable property.
setShadowable in interface Nodeb - the shadowable propertyNode.isShadowable()public boolean isDrawable()
Nodedrawable property.
isDrawable in interface NodeNode.setDrawable(boolean)public void setDrawable(boolean b)
Nodedrawable property.
setDrawable in interface Nodeb - the drawable propertyNode.isDrawable()public boolean isFillable()
Nodefillable property.
isFillable in interface NodeNode.setFillable(boolean)public void setFillable(boolean b)
Nodefillable property.
setFillable in interface Nodeb - the fillable propertyNode.isFillable()public Paint getShadowPaint()
Node
getShadowPaint in interface NodeNode.setShadowPaint(java.awt.Paint)public void setShadowPaint(Paint p)
Node
setShadowPaint in interface Nodep - the shadow paintNode.getShadowPaint()public Composite getShadowComposite()
Node
getShadowComposite in interface NodeNode.setShadowComposite(java.awt.Composite)public void setShadowComposite(Composite c)
Node
setShadowComposite in interface Nodec - the shadow compositeNode.getShadowComposite()public AffineTransform getShadowTransform()
Node
getShadowTransform in interface NodeNode.setShadowTransform(java.awt.geom.AffineTransform)public void setShadowTransform(AffineTransform at)
Node
setShadowTransform in interface Nodeat - the shadow transformNode.getShadowTransform()public void setDrawPaint(Paint p)
Node
setDrawPaint in interface Nodep - the draw paintNode.getDrawPaint()public Paint getDrawPaint()
Node
getDrawPaint in interface NodeNode.setDrawPaint(java.awt.Paint)public void setFillPaint(Paint p)
Node
setFillPaint in interface Nodep - the fill paintNode.getFillPaint()public Paint getFillPaint()
Node
getFillPaint in interface NodeNode.setFillPaint(java.awt.Paint)public void setDrawComposite(Composite c)
Node
setDrawComposite in interface Nodec - the draw compositeNode.getDrawComposite()public Composite getDrawComposite()
Node
getDrawComposite in interface NodeNode.setDrawComposite(java.awt.Composite)public void setFillComposite(Composite c)
Node
setFillComposite in interface Nodec - the fill compositeNode.getFillComposite()public Composite getFillComposite()
Node
getFillComposite in interface NodeNode.setFillComposite(java.awt.Composite)public void setTransform(AffineTransform at)
Node
setTransform in interface Nodeat - the transformNode.getTransform()public AffineTransform getTransform()
Node
getTransform in interface NodeNode.setTransform(java.awt.geom.AffineTransform)public void setStroke(Stroke s)
Node
setStroke in interface Nodes - the strokeNode.getStroke()public Stroke getStroke()
Node
getStroke in interface NodeNode.setStroke(java.awt.Stroke)public void setFont(Font f)
Node
setFont in interface Nodef - the fontNode.getFont()public Font getFont()
Node
getFont in interface NodeNode.setFont(java.awt.Font)public Object clone()
clone in class Objectpublic String toString()
toString in class Objectprotected String paramString()
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||