|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatt.grappa.GrappaNexus
public class GrappaNexus
This class brings together shape, text and attribute information related to bounding and drawing an element.
Field Summary | |
---|---|
static double |
arcHeightFactor
RoundRectangle arc height factor |
static double |
arcWidthFactor
RoundRectangle arc width factor |
boolean |
boundText
Indicates if element text should be included in the element bounding box. |
boolean |
clearText
Indicates if the area bounding the element text should be filled/outlined along with the element when being drawn. |
boolean |
drawText
Indicates if element text should be drawn when drawing the element. |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
GrappaNexus(Element elem)
Constructs a new GrappaNexus object from an element. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates a new object of the same class as this object. |
boolean |
contains(double x,
double y)
|
boolean |
contains(double x,
double y,
double width,
double height)
|
boolean |
contains(java.awt.geom.Point2D p)
|
boolean |
contains(java.awt.geom.Rectangle2D r)
|
java.awt.Rectangle |
getBounds()
|
java.awt.geom.Rectangle2D |
getBounds2D()
|
Element |
getElement()
Get the underlying element. |
java.awt.Image |
getImage()
Return the image, if any, loaded for this element |
java.awt.geom.PathIterator |
getPathIterator()
Equivalent to getPathIterator(null). |
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at)
|
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at,
double flatness)
|
int |
getWindingRule()
Return the winding rule for this line. |
boolean |
imageUpdate(java.awt.Image image,
int flags,
int x,
int y,
int width,
int height)
|
boolean |
intersects(double x,
double y,
double width,
double height)
|
boolean |
intersects(java.awt.geom.Rectangle2D r)
|
boolean |
isImageLoading()
Return status of image loading. |
void |
rebuild()
Recompute the components of this GrappaNexus. |
void |
update(java.lang.Object obs,
java.lang.Object arg)
This method is called whenever the observed object is changed. |
void |
updateDecoration()
Update the decoration information for the underlying element. |
void |
updateImage()
Update the image information for the underlying element. |
void |
updateShape()
Update the shape information for the underlying element. |
void |
updateStyle()
Update the shape information for the underlying element. |
void |
updateText()
Update the text information for the underlying element. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static double arcHeightFactor
public static double arcWidthFactor
public boolean boundText
Grappa.shapeBoundText
public boolean clearText
Grappa.shapeClearText
public boolean drawText
Grappa.shapeDrawText
Constructor Detail |
---|
public GrappaNexus(Element elem)
GrappaNexus
object from an element.
elem
- the Element
needing a GrappaNexus
object.Method Detail |
---|
public Element getElement()
public java.awt.Image getImage()
public boolean isImageLoading()
public int getWindingRule()
public void rebuild()
updateStyle
,
updateDecoration
,
updateShape
,
updateText
,
updateImage
public void updateShape()
public void updateStyle()
public void updateText()
public void updateDecoration()
public void updateImage()
public final boolean imageUpdate(java.awt.Image image, int flags, int x, int y, int width, int height)
imageUpdate
in interface java.awt.image.ImageObserver
public java.lang.Object clone()
clone
in class java.lang.Object
java.lang.OutOfMemoryError
- if there is not enough memory.Cloneable
public boolean contains(double x, double y)
contains
in interface java.awt.Shape
public boolean contains(double x, double y, double width, double height)
contains
in interface java.awt.Shape
public boolean contains(java.awt.geom.Point2D p)
contains
in interface java.awt.Shape
public boolean contains(java.awt.geom.Rectangle2D r)
contains
in interface java.awt.Shape
public java.awt.Rectangle getBounds()
getBounds
in interface java.awt.Shape
public java.awt.geom.Rectangle2D getBounds2D()
getBounds2D
in interface java.awt.Shape
public java.awt.geom.PathIterator getPathIterator()
getPathIterator(AffineTransform)
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
getPathIterator
in interface java.awt.Shape
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at, double flatness)
getPathIterator
in interface java.awt.Shape
public boolean intersects(double x, double y, double width, double height)
intersects
in interface java.awt.Shape
public boolean intersects(java.awt.geom.Rectangle2D r)
intersects
in interface java.awt.Shape
public void update(java.lang.Object obs, java.lang.Object arg)
update
in interface IGrappaObjectListener
obs
- the Observable must be an Attributearg
- either a Long giving the update time of the Attribute as returned by System.getTimeInMillis() or it is a two element Object array, where the first element is a new Attribute to be observed in place of that passed via obs and the second element is the update time of this new Attribute.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |