JComponentPack 1.5.0

com.zfqjava.chart
Class AbstractNode

java.lang.Object
  extended by com.zfqjava.chart.AbstractNode
All Implemented Interfaces:
Node, Cloneable
Direct Known Subclasses:
AbstractLink, ArcNode, BasicTool, Chart, ComponentNode, ConeNode, CubeNode, CurveNode, CylinderNode, DiamondNode, ElbowNode, EllipseNode, GridNode, GroupNode, HexagonNode, ImageNode, LegendNode, LineNode, NoteNode, ParallelogramNode, PyramidNode, RectangleNode, RoundRectangleNode, ShapeArrow, ShapeNode, SphereNode, StarNode, TextNode, TrapeziumNode, TrapezoidNode, TriangleNode

public abstract class AbstractNode
extends Object
implements Node, Cloneable

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

AbstractNode

public AbstractNode()
Method Detail

getLock

public final Object getLock()
Description copied from interface: Node
Returns the lock for this node.

Specified by:
getLock in interface Node

setName

public void setName(String name)
Description copied from interface: Node
Sets the node name.

Specified by:
setName in interface Node
Parameters:
name - the node name
See Also:
Node.getName()

getName

public String getName()
Description copied from interface: Node
Returns the node name.

Specified by:
getName in interface Node
Returns:
the node name
See Also:
Node.setName(java.lang.String)

addLink

public void addLink(Link link)
Description copied from interface: Node
Adds the link to this node.

Specified by:
addLink in interface Node
Parameters:
link - the link to add
See Also:
Node.removeLink(com.zfqjava.chart.Link)

removeLink

public void removeLink(Link link)
Description copied from interface: Node
Removes the link from this node.

Specified by:
removeLink in interface Node
Parameters:
link - the link to remove
See Also:
Node.addLink(com.zfqjava.chart.Link)

getLinkCount

public int getLinkCount()
Description copied from interface: Node
Returns the number of the link added to this node.

Specified by:
getLinkCount in interface Node
Returns:
the number of the link

getLinkList

public List getLinkList()
Description copied from interface: Node
Returns a read-only link list.

Specified by:
getLinkList in interface Node
Returns:
a read-only link list

addHandle

public void addHandle(Handle handle)
Description copied from interface: Node
Adds the handle to this node.

Specified by:
addHandle in interface Node
Parameters:
handle - the handle to add
See Also:
Node.removeHandle(com.zfqjava.chart.Handle)

addHandle

public void addHandle(Handle handle,
                      int index)
Description copied from interface: Node
Adds the handle to this node.

Specified by:
addHandle in interface Node
Parameters:
handle - the handle to add
index - the handle idex
See Also:
Node.removeHandle(com.zfqjava.chart.Handle)

removeHandle

public void removeHandle(int index)
Description copied from interface: Node
Removes the handle from this node.

Specified by:
removeHandle in interface Node
Parameters:
index - the handle at the specified index to remove
See Also:
Node.addHandle(com.zfqjava.chart.Handle)

removeHandle

public void removeHandle(Handle handle)
Description copied from interface: Node
Removes the handle from this node.

Specified by:
removeHandle in interface Node
Parameters:
handle - the handle to remove
See Also:
Node.addHandle(com.zfqjava.chart.Handle)

getHandleCount

public int getHandleCount()
Description copied from interface: Node
Returns the number of the handle added to this node.

Specified by:
getHandleCount in interface Node
Returns:
the number of the handle

getHandleList

public List getHandleList()
Description copied from interface: Node
Returns a read-only handle list.

Specified by:
getHandleList in interface Node
Returns:
a read-only handle list

createHandles

protected List createHandles()
Creates the handles for this node.

Returns:
the handles

addNode

public void addNode(Node node)
Description copied from interface: Node
Adds a node to this node.

Specified by:
addNode in interface Node
Parameters:
node - a node to add

addNode

public void addNode(Node node,
                    int index)
Description copied from interface: Node
Adds a node to this node at the specify index.

Specified by:
addNode in interface Node
Parameters:
node - the node to add
index - the node index

addNode

public void addNode(List nodes)
Description copied from interface: Node
Adds the nodes to this chart

Specified by:
addNode in interface Node
Parameters:
nodes - the nodes

addNode

public void addNode(List nodes,
                    int index)
Description copied from interface: Node
Adds the nodes to this chart at the specified index

Specified by:
addNode in interface Node
Parameters:
nodes - the nodes
index - the index

removeNode

public void removeNode(List nodes)
Description copied from interface: Node
Removes the specified nodes.

Specified by:
removeNode in interface Node
Parameters:
nodes - the nodes to remove

removeNode

public void removeNode(Node node)
Description copied from interface: Node
Removes the node from this node.

Specified by:
removeNode in interface Node
Parameters:
node - a node to remove

removeNode

public void removeNode(int index)
Description copied from interface: Node
Removes the node at the specified index from this node.

Specified by:
removeNode in interface Node
Parameters:
index - the node at the specified index

removeAllNode

public void removeAllNode()
Description copied from interface: Node
Removes all nodes from this node.

Specified by:
removeAllNode in interface Node

getNodeCount

public int getNodeCount()
Description copied from interface: Node
Returns the number of the nodes in this node.

Specified by:
getNodeCount in interface Node
Returns:
the number of the nodes in this node

getNode

public Node getNode(int index)
Description copied from interface: Node
Returns the node at the specified index.

Specified by:
getNode in interface Node
Returns:
the node at the specified index

indexOfNode

public int indexOfNode(Node node)
Description copied from interface: Node
Returns the index for the specified node.

Specified by:
indexOfNode in interface Node
Returns:
the index for the specified node, return -1 if the node have not added into this node

getNodeList

public List getNodeList()
Description copied from interface: Node
Returns a read-only node list that add into this node.

Specified by:
getNodeList in interface Node
Returns:
a read-only node list that add into this node

getX

public int getX()
Description copied from interface: Node
Returns the x location.

Specified by:
getX in interface Node
Returns:
the x location

getY

public int getY()
Description copied from interface: Node
Returns the y location.

Specified by:
getY in interface Node
Returns:
the y location

getWidth

public int getWidth()
Description copied from interface: Node
Returns the width.

Specified by:
getWidth in interface Node
Returns:
the width

getHeight

public int getHeight()
Description copied from interface: Node
Returns the height.

Specified by:
getHeight in interface Node
Returns:
the height

getCenterX

public int getCenterX()
Description copied from interface: Node
Returns the x center coordinate.

Specified by:
getCenterX in interface Node
Returns:
the x center coordinate

getCenterY

public int getCenterY()
Description copied from interface: Node
Returns the y center coordinate.

Specified by:
getCenterY in interface Node
Returns:
the y center coordinate

setCenterLocation

public void setCenterLocation(int x,
                              int y)
Description copied from interface: Node
Sets the center location.

Specified by:
setCenterLocation in interface Node
Parameters:
x - the x location
y - the y location

setLocation

public void setLocation(int x,
                        int y)
Description copied from interface: Node
Sets the location.

Specified by:
setLocation in interface Node
Parameters:
x - the x location
y - the y location

setSize

public void setSize(int width,
                    int height)
Description copied from interface: Node
Sets the size.

Specified by:
setSize in interface Node
Parameters:
width - the width
height - the height

setBounds

public void setBounds(Rectangle bounds)
Description copied from interface: Node
Sets the node bounds.

Specified by:
setBounds in interface Node
Parameters:
bounds - the bounds

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)
Description copied from interface: Node
Sets the node bounds.

Specified by:
setBounds in interface Node
Parameters:
x - the x location
y - the y location
width - the width
height - the height

createPaintShape

protected Shape createPaintShape()
Creates the paint shape.

Returns:
the paint shape

configureShape

protected void configureShape(Shape s)
Configure the shape when the node's bounds has been changed.

Parameters:
s - the paint shape of this node.

configureShape

protected void configureShape(Shape s,
                              int x,
                              int y,
                              int width,
                              int height)
Configure the shape when the node's bounds has been changed.

Parameters:
s - the paint shape of this node.
x - the x location
y - the y location
width - the width
height - the height

setPreferredSize

public void setPreferredSize(Dimension d)
Description copied from interface: Node
Sets the preferred size of this node.

Specified by:
setPreferredSize in interface Node
Parameters:
d - the preferred size of this node

getPreferredSize

public Dimension getPreferredSize()
Description copied from interface: Node
Returns the preferred size of this node.

Specified by:
getPreferredSize in interface Node
Returns:
the node preferred size

isPreferredSizeSet

public boolean isPreferredSizeSet()
Specified by:
isPreferredSizeSet in interface Node

revalidate

public void revalidate()
Description copied from interface: Node
Revalidates itself.

Specified by:
revalidate in interface Node

doLayout

public void doLayout()
Description copied from interface: Node
Layout the children nodes.

Specified by:
doLayout in interface Node

setLayout

public void setLayout(Layout layout)
Description copied from interface: Node
Sets the layout.

Specified by:
setLayout in interface Node
Parameters:
layout - the layout
See Also:
Node.getLayout()

getLayout

public Layout getLayout()
Description copied from interface: Node
Returns the layout for this node.

Specified by:
getLayout in interface Node
Returns:
the layout for this node
See Also:
Node.setLayout(com.zfqjava.chart.Layout)

findNodeAt

public Node findNodeAt(int x,
                       int y)
Description copied from interface: Node
Finds the node contains the point x, y.

Specified by:
findNodeAt in interface Node
Parameters:
x - the x location
y - the y location
Returns:
the node contians the point x, y

contains

public boolean contains(int x,
                        int y)
Description copied from interface: Node
Determines whether this node contains the specify point.

Specified by:
contains in interface Node
Parameters:
x - the x coordinate of the point
y - the y coordinate of the point
Returns:
true if this node contains the specify point, otherwise return false

contains

public boolean contains(int x,
                        int y,
                        int width,
                        int height)
Description copied from interface: Node
Determines whether this node contains the specify bound.

Specified by:
contains in interface Node
Parameters:
x - the x coordinate of the bound
y - the y coordinate of the bound
width - the width of the bound
height - the height of the bound
Returns:
true if this node contains the specify point, otherwise return false

contains

public boolean contains(Rectangle bound)
Description copied from interface: Node
Determines whether this node contains the specify bound.

Specified by:
contains in interface Node
Parameters:
bound - the bound
Returns:
true if this node contains the specify point, otherwise return false

intersects

public boolean intersects(int x,
                          int y,
                          int width,
                          int height)
Description copied from interface: Node
Tests this node whether intersects the specified bound.

Specified by:
intersects in interface Node
Parameters:
x - the x coordinate of the bound
y - the y coordinate of the bound
width - the width of the bound
height - the height of the bound

intersects

public boolean intersects(Rectangle bound)
Description copied from interface: Node
Tests this node whether intersects the specified bound.

Specified by:
intersects in interface Node
Parameters:
bound - the rectangle to determines

isEmpty

public boolean isEmpty()
Description copied from interface: Node
Determines whether this node is empty.

Specified by:
isEmpty in interface Node
Returns:
true if this node is emtpy.

setToolTipText

public void setToolTipText(String toolTipText)
Description copied from interface: Node
Sets the tool tip text for this node.

Specified by:
setToolTipText in interface Node
Parameters:
toolTipText - the tool tip text
See Also:
Node.getToolTipText(int, int)

getToolTipText

public String getToolTipText()
Description copied from interface: Node
Returns the tool tip text for this node.

Specified by:
getToolTipText in interface Node
Returns:
the tool tip text
See Also:
Node.setToolTipText(java.lang.String)

getToolTipText

public String getToolTipText(int x,
                             int y)
Description copied from interface: Node
Returns the tool tip text for the specified point.

Specified by:
getToolTipText in interface Node
Parameters:
x - the x coordinate of the point
y - the y coordinate of the point
Returns:
the tool tip text

getBounds

public Rectangle getBounds(Rectangle rect)
Description copied from interface: Node
Returns the node bounds.

Specified by:
getBounds in interface Node
Parameters:
rect - the Rectangle to store node bounds
Returns:
the node bounds

getPaintBounds

public Rectangle getPaintBounds(Rectangle rect)
Description copied from interface: Node
Returns the node paint bounds.

Specified by:
getPaintBounds in interface Node
Parameters:
rect - the Rectangle to store node paint bounds
Returns:
the node paint bounds

getCellBounds

public Rectangle getCellBounds(Rectangle rect)
Description copied from interface: Node
Returns the node cell bounds.

Specified by:
getCellBounds in interface Node
Parameters:
rect - the Rectangle to store node cell bounds
Returns:
the node cell bounds

getMargin

public Insets getMargin()
Description copied from interface: Node
Returns the margin between the node cell bounds and its contents.

Specified by:
getMargin in interface Node
Returns:
an Insets object containing the margin values
See Also:
Node.setMargin(java.awt.Insets)

setMargin

public void setMargin(Insets m)
Description copied from interface: Node
Sets the margin between the node cell bounds and its contents.

Specified by:
setMargin in interface Node
Parameters:
m - an Insets object that defines the space between node cell bounds and its contents
See Also:
Node.getMargin()

setPaintShape

protected void setPaintShape(Shape paintShape)
Sets the paint shape.

Parameters:
paintShape - the paint shape

getPaintShape

protected Shape getPaintShape()
Returns the paint shape for paint.

Returns:
the paint shape

setCursor

public void setCursor(Cursor c)
Description copied from interface: Node
Sets the cursor for current node.

Specified by:
setCursor in interface Node
Parameters:
c - the cursor
See Also:
Node.getCursor()

getCursor

public Cursor getCursor()
Description copied from interface: Node
Returns the cursor for current node.

Specified by:
getCursor in interface Node
Returns:
the cursor
See Also:
Node.setCursor(java.awt.Cursor)

setUserObject

public void setUserObject(Object userObject)
Description copied from interface: Node
Sets the user object for this node.

Specified by:
setUserObject in interface Node
Parameters:
userObject - the user object
See Also:
Node.getUserObject()

getUserObject

public Object getUserObject()
Description copied from interface: Node
Returns the user object for this node.

Specified by:
getUserObject in interface Node
Returns:
the user object
See Also:
Node.setUserObject(java.lang.Object)

setChart

public void setChart(Chart chart)
Description copied from interface: Node
Sets the chart container.

Specified by:
setChart in interface Node
Parameters:
chart - the chart container
See Also:
Node.getChart()

getChart

public Chart getChart()
Description copied from interface: Node
Returns the chart container

Specified by:
getChart in interface Node
Returns:
the chart container
See Also:
Node.setChart(com.zfqjava.chart.Chart)

repaint

public void repaint()
Description copied from interface: Node
Repaints itself.

Specified by:
repaint in interface Node

repaint

public void repaint(Rectangle bounds)
Description copied from interface: Node
Repaints the specified area.

Specified by:
repaint in interface Node

repaint

public void repaint(int x,
                    int y,
                    int width,
                    int height)
Description copied from interface: Node
Repaints the specified area.

Specified by:
repaint in interface Node

paint

public void paint(Graphics2D g)
Description copied from interface: Node
Paints itself.

Specified by:
paint in interface Node
Parameters:
g - the node Graphics object

drawShape

protected void drawShape(Graphics2D g,
                         Shape s)

fillShape

protected void fillShape(Graphics2D g,
                         Shape s)

paintNodes

protected void paintNodes(Graphics2D g)

isResizable

public boolean isResizable()
Description copied from interface: Node
Returns the resizable property.

Specified by:
isResizable in interface Node
Returns:
the resizable property
See Also:
Node.setResizable(boolean)

setResizable

public void setResizable(boolean b)
Description copied from interface: Node
Sets the resizable property.

Specified by:
setResizable in interface Node
Parameters:
b - the resizable property
See Also:
Node.isResizable()

isMovable

public boolean isMovable()
Description copied from interface: Node
Returns the movable property.

Specified by:
isMovable in interface Node
Returns:
the movable property
See Also:
Node.setMovable(boolean)

setMovable

public void setMovable(boolean b)
Description copied from interface: Node
Sets the movable property.

Specified by:
setMovable in interface Node
Parameters:
b - the movable property
See Also:
Node.isMovable()

isSelectable

public boolean isSelectable()
Description copied from interface: Node
Returns the selectable property.

Specified by:
isSelectable in interface Node
Returns:
the selectable property
See Also:
Node.setSelectable(boolean)

isRotatable

public boolean isRotatable()
Description copied from interface: Node
Returns the rotatable property.

Specified by:
isRotatable in interface Node
Returns:
the rotatable property
See Also:
Node.setRotatable(boolean)

setRotatable

public void setRotatable(boolean b)
Description copied from interface: Node
Sets the rotatable property.

Specified by:
setRotatable in interface Node
Parameters:
b - the rotatable property
See Also:
Node.isRotatable()

isAdjustable

public boolean isAdjustable()
Description copied from interface: Node
Returns the adjustable property.

Specified by:
isAdjustable in interface Node
Returns:
the adjustable property
See Also:
Node.setAdjustable(boolean)

setAdjustable

public void setAdjustable(boolean b)
Description copied from interface: Node
Sets the adjustable property.

Specified by:
setAdjustable in interface Node
Parameters:
b - the adjustable property
See Also:
Node.isAdjustable()

setSelectable

public void setSelectable(boolean b)
Description copied from interface: Node
Sets the selectable property.

Specified by:
setSelectable in interface Node
Parameters:
b - the selectable property
See Also:
Node.isSelectable()

isEditable

public boolean isEditable()
Description copied from interface: Node
Returns the editable property.

Specified by:
isEditable in interface Node
Returns:
the editable property
See Also:
Node.setEditable(boolean)

setEditable

public void setEditable(boolean b)
Description copied from interface: Node
Sets the editable property.

Specified by:
setEditable in interface Node
Parameters:
b - the editable property
See Also:
Node.isEditable()

isLinkable

public boolean isLinkable()
Description copied from interface: Node
Returns the linkable property.

Specified by:
isLinkable in interface Node
Returns:
the linkable property
See Also:
Node.setLinkable(boolean)

setLinkable

public void setLinkable(boolean b)
Description copied from interface: Node
Sets the linkable property.

Specified by:
setLinkable in interface Node
Parameters:
b - the linkable property
See Also:
Node.isLinkable()

isGroupable

public boolean isGroupable()
Description copied from interface: Node
Returns the groupable property.

Specified by:
isGroupable in interface Node
Returns:
the groupable property
See Also:
Node.setGroupable(boolean)

setGroupable

public void setGroupable(boolean b)
Description copied from interface: Node
Sets the groupable property.

Specified by:
setGroupable in interface Node
Parameters:
b - the groupable property
See Also:
Node.isGroupable()

isVisible

public boolean isVisible()
Description copied from interface: Node
Returns the visible property.

Specified by:
isVisible in interface Node
Returns:
the visible property
See Also:
Node.setVisible(boolean)

setVisible

public void setVisible(boolean b)
Description copied from interface: Node
Sets the visible property.

Specified by:
setVisible in interface Node
Parameters:
b - the visible property
See Also:
Node.isVisible()

isCellable

public boolean isCellable()
Description copied from interface: Node
Returns the cellable property.

Specified by:
isCellable in interface Node
Returns:
the cellable property
See Also:
Node.setCellable(boolean)

setCellable

public void setCellable(boolean b)
Description copied from interface: Node
Sets the cellable property.

Specified by:
setCellable in interface Node
Parameters:
b - the cellable property
See Also:
Node.isCellable()

isShadowable

public boolean isShadowable()
Description copied from interface: Node
Returns the shadowable property.

Specified by:
isShadowable in interface Node
Returns:
the shadowable property
See Also:
Node.setShadowable(boolean)

setShadowable

public void setShadowable(boolean b)
Description copied from interface: Node
Sets the shadowable property.

Specified by:
setShadowable in interface Node
Parameters:
b - the shadowable property
See Also:
Node.isShadowable()

isDrawable

public boolean isDrawable()
Description copied from interface: Node
Returns the drawable property.

Specified by:
isDrawable in interface Node
Returns:
the drawable property
See Also:
Node.setDrawable(boolean)

setDrawable

public void setDrawable(boolean b)
Description copied from interface: Node
Sets the drawable property.

Specified by:
setDrawable in interface Node
Parameters:
b - the drawable property
See Also:
Node.isDrawable()

isFillable

public boolean isFillable()
Description copied from interface: Node
Returns the fillable property.

Specified by:
isFillable in interface Node
Returns:
the fillable property
See Also:
Node.setFillable(boolean)

setFillable

public void setFillable(boolean b)
Description copied from interface: Node
Sets the fillable property.

Specified by:
setFillable in interface Node
Parameters:
b - the fillable property
See Also:
Node.isFillable()

getShadowPaint

public Paint getShadowPaint()
Description copied from interface: Node
Returns the shadow paint.

Specified by:
getShadowPaint in interface Node
Returns:
the shadow paint
See Also:
Node.setShadowPaint(java.awt.Paint)

setShadowPaint

public void setShadowPaint(Paint p)
Description copied from interface: Node
Sets the shadow paint.

Specified by:
setShadowPaint in interface Node
Parameters:
p - the shadow paint
See Also:
Node.getShadowPaint()

getShadowComposite

public Composite getShadowComposite()
Description copied from interface: Node
Returns the shadow composite for current node.

Specified by:
getShadowComposite in interface Node
Returns:
the shadow composite
See Also:
Node.setShadowComposite(java.awt.Composite)

setShadowComposite

public void setShadowComposite(Composite c)
Description copied from interface: Node
Sets the shadow composite for current node.

Specified by:
setShadowComposite in interface Node
Parameters:
c - the shadow composite
See Also:
Node.getShadowComposite()

getShadowTransform

public AffineTransform getShadowTransform()
Description copied from interface: Node
Returns the shadow transform for current node.

Specified by:
getShadowTransform in interface Node
Returns:
the shadow transform
See Also:
Node.setShadowTransform(java.awt.geom.AffineTransform)

setShadowTransform

public void setShadowTransform(AffineTransform at)
Description copied from interface: Node
Sets the shadow transform for current node.

Specified by:
setShadowTransform in interface Node
Parameters:
at - the shadow transform
See Also:
Node.getShadowTransform()

setDrawPaint

public void setDrawPaint(Paint p)
Description copied from interface: Node
Sets the draw paint for current node.

Specified by:
setDrawPaint in interface Node
Parameters:
p - the draw paint
See Also:
Node.getDrawPaint()

getDrawPaint

public Paint getDrawPaint()
Description copied from interface: Node
Returns the draw paint for current node.

Specified by:
getDrawPaint in interface Node
Returns:
the draw paint
See Also:
Node.setDrawPaint(java.awt.Paint)

setFillPaint

public void setFillPaint(Paint p)
Description copied from interface: Node
Sets the fill paint for current node.

Specified by:
setFillPaint in interface Node
Parameters:
p - the fill paint
See Also:
Node.getFillPaint()

getFillPaint

public Paint getFillPaint()
Description copied from interface: Node
Returns the fill paint for current node.

Specified by:
getFillPaint in interface Node
Returns:
the fill paint
See Also:
Node.setFillPaint(java.awt.Paint)

setDrawComposite

public void setDrawComposite(Composite c)
Description copied from interface: Node
Sets the draw composite for current node.

Specified by:
setDrawComposite in interface Node
Parameters:
c - the draw composite
See Also:
Node.getDrawComposite()

getDrawComposite

public Composite getDrawComposite()
Description copied from interface: Node
Returns the draw composite for current node.

Specified by:
getDrawComposite in interface Node
Returns:
the draw composite
See Also:
Node.setDrawComposite(java.awt.Composite)

setFillComposite

public void setFillComposite(Composite c)
Description copied from interface: Node
Sets the fill composite for current node.

Specified by:
setFillComposite in interface Node
Parameters:
c - the fill composite
See Also:
Node.getFillComposite()

getFillComposite

public Composite getFillComposite()
Description copied from interface: Node
Returns the fill composite for current node.

Specified by:
getFillComposite in interface Node
Returns:
the fill composite
See Also:
Node.setFillComposite(java.awt.Composite)

setTransform

public void setTransform(AffineTransform at)
Description copied from interface: Node
Sets the transform for current node.

Specified by:
setTransform in interface Node
Parameters:
at - the transform
See Also:
Node.getTransform()

getTransform

public AffineTransform getTransform()
Description copied from interface: Node
Returns the transform for current node.

Specified by:
getTransform in interface Node
Returns:
the transform
See Also:
Node.setTransform(java.awt.geom.AffineTransform)

setStroke

public void setStroke(Stroke s)
Description copied from interface: Node
Sets the stroke for current node.

Specified by:
setStroke in interface Node
Parameters:
s - the stroke
See Also:
Node.getStroke()

getStroke

public Stroke getStroke()
Description copied from interface: Node
Returns the stroke for current node.

Specified by:
getStroke in interface Node
Returns:
the stroke
See Also:
Node.setStroke(java.awt.Stroke)

setFont

public void setFont(Font f)
Description copied from interface: Node
Sets the font for current node.

Specified by:
setFont in interface Node
Parameters:
f - the font
See Also:
Node.getFont()

getFont

public Font getFont()
Description copied from interface: Node
Returns the font for current node.

Specified by:
getFont in interface Node
Returns:
the font
See Also:
Node.setFont(java.awt.Font)

clone

public Object clone()
Overrides:
clone in class Object

toString

public String toString()
Overrides:
toString in class Object

paramString

protected String paramString()

JComponentPack 1.5.0

Send your Feedback
JComponentPack 1.5.0
Copyright © 2001-2007 Extreme Component, Inc. All rights reserved.