|
JComponentPack 1.3.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Node
Node provides a node on chart container.
| 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. |
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. |
void |
doLayout()
Layout the children nodes. |
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. |
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. |
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. |
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. |
| Method Detail |
|---|
Object getLock()
void setName(String name)
name - the node namegetName()String getName()
setName(java.lang.String)void addLink(Link link)
link - the link to addremoveLink(com.zfqjava.chart.Link)void removeLink(Link link)
link - the link to removeaddLink(com.zfqjava.chart.Link)int getLinkCount()
List getLinkList()
void addHandle(Handle handle)
handle - the handle to addremoveHandle(com.zfqjava.chart.Handle)
void addHandle(Handle handle,
int index)
handle - the handle to addindex - the handle idexremoveHandle(com.zfqjava.chart.Handle)void removeHandle(Handle handle)
handle - the handle to removeaddHandle(com.zfqjava.chart.Handle)void removeHandle(int index)
index - the handle at the specified index to removeaddHandle(com.zfqjava.chart.Handle)int getHandleCount()
List getHandleList()
void addNode(Node node)
node - a node to add
void addNode(Node node,
int index)
node - the node to addindex - the node index
IndexOutOfBoundsException - if the index out of boundsvoid addNode(List nodes)
nodes - the nodes
void addNode(List nodes,
int index)
nodes - the nodesindex - the indexvoid removeNode(Node node)
node - a node to removevoid removeNode(int index)
index - the node at the specified indexvoid removeNode(List nodes)
nodes - the nodes to removevoid removeAllNode()
int getNodeCount()
Node getNode(int index)
List getNodeList()
int indexOfNode(Node node)
int getX()
int getY()
int getWidth()
int getHeight()
int getCenterX()
int getCenterY()
void setLocation(int x,
int y)
x - the x locationy - the y location
void setCenterLocation(int x,
int y)
x - the x locationy - the y location
void setSize(int width,
int height)
width - the widthheight - the height
void setBounds(int x,
int y,
int width,
int height)
x - the x locationy - the y locationwidth - the widthheight - the heightvoid setBounds(Rectangle bounds)
bounds - the boundsRectangle getBounds(Rectangle rect)
rect - the Rectangle to store node bounds
Rectangle getPaintBounds(Rectangle rect)
rect - the Rectangle to store node paint bounds
Rectangle getCellBounds(Rectangle rect)
rect - the Rectangle to store node cell bounds
void setMargin(Insets m)
m - an Insets object that defines the space
between node cell bounds and its contentsgetMargin()Insets getMargin()
Insets object containing the margin valuessetMargin(java.awt.Insets)void setPreferredSize(Dimension d)
d - the preferred size of this nodeDimension getPreferredSize()
boolean isPreferredSizeSet()
void doLayout()
void setLayout(Layout layout)
layout - the layoutgetLayout()Layout getLayout()
setLayout(com.zfqjava.chart.Layout)
Node findNodeAt(int x,
int y)
x - the x locationy - the y location
boolean contains(int x,
int y)
x - the x coordinate of the pointy - the y coordinate of the point
boolean contains(int x,
int y,
int width,
int height)
x - the x coordinate of the boundy - the y coordinate of the boundwidth - the width of the boundheight - the height of the bound
boolean contains(Rectangle bound)
bound - the bound
boolean intersects(int x,
int y,
int width,
int height)
x - the x coordinate of the boundy - the y coordinate of the boundwidth - the width of the boundheight - the height of the boundboolean intersects(Rectangle bound)
bound - the rectangle to determinesboolean isEmpty()
String getToolTipText(int x,
int y)
x - the x coordinate of the pointy - the y coordinate of the point
void setToolTipText(String toolTipText)
toolTipText - the tool tip textgetToolTipText(int, int)String getToolTipText()
setToolTipText(java.lang.String)void setCursor(Cursor c)
c - the cursorgetCursor()Cursor getCursor()
setCursor(java.awt.Cursor)void setUserObject(Object userObject)
userObject - the user objectgetUserObject()Object getUserObject()
setUserObject(java.lang.Object)void setChart(Chart chart)
chart - the chart containergetChart()Chart getChart()
setChart(com.zfqjava.chart.Chart)void revalidate()
void paint(Graphics2D g)
g - the node Graphics objectvoid repaint()
void repaint(Rectangle bounds)
void repaint(int x,
int y,
int width,
int height)
boolean isResizable()
resizable property.
setResizable(boolean)void setResizable(boolean b)
resizable property.
b - the resizable propertyisResizable()boolean isMovable()
movable property.
setMovable(boolean)void setMovable(boolean b)
movable property.
b - the movable propertyisMovable()boolean isRotatable()
rotatable property.
setRotatable(boolean)void setRotatable(boolean b)
rotatable property.
b - the rotatable propertyisRotatable()boolean isAdjustable()
adjustable property.
setAdjustable(boolean)void setAdjustable(boolean b)
adjustable property.
b - the adjustable propertyisAdjustable()boolean isSelectable()
selectable property.
setSelectable(boolean)void setSelectable(boolean b)
selectable property.
b - the selectable propertyisSelectable()boolean isGroupable()
groupable property.
setGroupable(boolean)void setGroupable(boolean b)
groupable property.
b - the groupable propertyisGroupable()boolean isLinkable()
linkable property.
setLinkable(boolean)void setLinkable(boolean b)
linkable property.
b - the linkable propertyisLinkable()boolean isEditable()
editable property.
setEditable(boolean)void setEditable(boolean b)
editable property.
b - the editable propertyisEditable()boolean isVisible()
visible property.
setVisible(boolean)void setVisible(boolean b)
visible property.
b - the visible propertyisVisible()boolean isCellable()
cellable property.
setCellable(boolean)void setCellable(boolean b)
cellable property.
b - the cellable propertyisCellable()boolean isShadowable()
shadowable property.
setShadowable(boolean)void setShadowable(boolean b)
shadowable property.
b - the shadowable propertyisShadowable()boolean isDrawable()
drawable property.
setDrawable(boolean)void setDrawable(boolean b)
drawable property.
b - the drawable propertyisDrawable()boolean isFillable()
fillable property.
setFillable(boolean)void setFillable(boolean b)
fillable property.
b - the fillable propertyisFillable()Paint getShadowPaint()
setShadowPaint(java.awt.Paint)void setShadowPaint(Paint p)
p - the shadow paintgetShadowPaint()Composite getShadowComposite()
setShadowComposite(java.awt.Composite)void setShadowComposite(Composite c)
c - the shadow compositegetShadowComposite()void setShadowTransform(AffineTransform at)
at - the shadow transformgetShadowTransform()AffineTransform getShadowTransform()
setShadowTransform(java.awt.geom.AffineTransform)void setDrawPaint(Paint p)
p - the draw paintgetDrawPaint()Paint getDrawPaint()
setDrawPaint(java.awt.Paint)void setFillPaint(Paint p)
p - the fill paintgetFillPaint()Paint getFillPaint()
setFillPaint(java.awt.Paint)void setDrawComposite(Composite c)
c - the draw compositegetDrawComposite()Composite getDrawComposite()
setDrawComposite(java.awt.Composite)void setFillComposite(Composite c)
c - the fill compositegetFillComposite()Composite getFillComposite()
setFillComposite(java.awt.Composite)void setTransform(AffineTransform at)
at - the transformgetTransform()AffineTransform getTransform()
setTransform(java.awt.geom.AffineTransform)void setStroke(Stroke s)
s - the strokegetStroke()Stroke getStroke()
setStroke(java.awt.Stroke)void setFont(Font f)
f - the fontgetFont()Font getFont()
setFont(java.awt.Font)
|
JComponentPack 1.3.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||