|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.scenario.scenegraph.SGNode
com.sun.scenario.scenegraph.SGLeaf
com.sun.scenario.scenegraph.SGAbstractShape
com.sun.scenario.scenegraph.SGShape
public class SGShape
A scene graph node that renders a Shape.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.scenario.scenegraph.SGAbstractShape |
|---|
SGAbstractShape.Mode |
| Constructor Summary | |
|---|---|
SGShape()
|
|
| Method Summary | |
|---|---|
boolean |
contains(java.awt.geom.Point2D point)
Returns true if the given point (specified in the local/untransformed coordinate space of this node) is contained within the visual bounds of this node. |
java.lang.Object |
getAntialiasingHint()
Returns the KEY_ANTIALIASING rendering hint. |
java.awt.geom.Rectangle2D |
getBounds(java.awt.geom.AffineTransform at)
Returns the bounding box of this node relative to the specified coordinate space. |
java.awt.Shape |
getShape()
Returns a reference to (not a copy of) the Shape of this node. |
void |
paint(java.awt.Graphics2D g)
|
void |
setAntialiasingHint(java.lang.Object hint)
Sets the KEY_ANTIALIASING rendering hint. |
void |
setDrawStroke(java.awt.Stroke drawStroke)
|
void |
setShape(java.awt.Shape shape)
Sets the Shape of this node. |
| Methods inherited from class com.sun.scenario.scenegraph.SGAbstractShape |
|---|
getDrawPaint, getDrawStroke, getFillPaint, getMode, setDrawPaint, setFillPaint, setMode |
| Methods inherited from class com.sun.scenario.scenegraph.SGLeaf |
|---|
repaint, repaint |
| Methods inherited from class com.sun.scenario.scenegraph.SGNode |
|---|
addFocusListener, addKeyListener, addMouseListener, addNodeListener, getAttribute, getBounds, getID, getPanel, getParent, globalToLocal, isVisible, localToGlobal, pick, putAttribute, removeFocusListener, removeKeyListener, removeMouseListener, removeNodeListener, requestFocus, setID, setVisible, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SGShape()
| Method Detail |
|---|
public final java.awt.Shape getShape()
Shape of this node.
The default value of this property is null.
Typically the shape property will be set once when the
SGShape is first constructed. If thereafter the shape
object is modified, it is the user's responsibility to call
setShape() to ensure that the node state is properly updated.
getShape in class SGAbstractShapeShape of this nodepublic void setShape(java.awt.Shape shape)
Shape of this node.
Typically the shape property will be set once when the
SGShape is first constructed. If thereafter the shape
object is modified, it is the user's responsibility to call
setShape() to ensure that the node state is properly updated.
shape - the Shape of this nodepublic java.lang.Object getAntialiasingHint()
KEY_ANTIALIASING rendering hint.
The hint will be
one of: RenderingHints.VALUE_ANTIALIAS_ON,
RenderingHints.VALUE_ANTIALIAS_OFF,
RenderingHints.VALUE_ANTIALIAS_DEFAULT.
KEY_ANTIALIASING hintRenderingHintspublic void setAntialiasingHint(java.lang.Object hint)
KEY_ANTIALIASING rendering hint. The hint must be
one of: RenderingHints.VALUE_ANTIALIAS_ON,
RenderingHints.VALUE_ANTIALIAS_OFF,
RenderingHints.VALUE_ANTIALIAS_DEFAULT. The default is
VALUE_ANTIALIAS_DEFAULT.
RenderingHints,
Graphics2Dpublic void paint(java.awt.Graphics2D g)
paint in class SGLeafpublic void setDrawStroke(java.awt.Stroke drawStroke)
setDrawStroke in class SGAbstractShapepublic final java.awt.geom.Rectangle2D getBounds(java.awt.geom.AffineTransform at)
SGNode
getBounds in class SGNodeat - the transform applied to the geometrypublic boolean contains(java.awt.geom.Point2D point)
SGNode
contains in class SGNodepoint - a point in the local coordinate space of this node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||