| HEADER | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Base class for vizualization.
| Field Summary | |
final static int | ACTIVEBit field of type.It is set, if the view can be selected. |
final static int | BASELINEAlignment mode. |
final static int | BOTTOMAlignment mode. |
final static int | CENTERAlignment mode. |
final static int | HIDEBit field of type.It is set, if the view has visible state. |
final static int | LEFTAlignment mode. |
final static int | RIGHTAlignment mode. |
final static int | TOPAlignment mode. |
| Constructor Summary | |
View(Shape shape)Constructs View using specified Shape | |
| Method Summary | |
Rectangle | getBounds()Returns an integer Rectangle that completely encloses the View. |
Object | getModel()Returns model of view |
Shape | getShape()Returns shape of View. |
boolean | intersects(Rectangle rect)Tests if this View's shape intersects the interior of a specified rectangle. |
boolean | isActive()Returns true if view is active |
boolean | isVisible()Returns true if view is visible |
abstract void | move(int x, int y)Moves View to the new location using specified offsets. |
void | move(Point offset)Moves View to the new location using specified offset. |
void | paint(Graphics2D g2)Paints this view on specified Graphics2D. |
void | scale(double sx, double sy)Scales view in relation to old values. |
void | setActive(boolean isActive)Sets active state of view |
void | setLocation(int x, int y)Set the location of the upper left corner of the view x, y coordinates. |
void | setLocation(Point pt)Set the location of the upper left corner of the view x, y coordinates. |
void | setModel(Object model)Sets model of view |
void | setToScale(double factorX, double factorY)Scales view absolutely. |
void | setVisible(boolean isVisible)Sets visible state of view |
void | updateBounds()Synchronizes the Rectangle rectangle returned by getBounds()
with view. |
| Field Detail |
public final static int ACTIVE
public final static int BASELINE
public final static int BOTTOM
public final static int CENTER
public final static int HIDE
public final static int LEFT
public final static int RIGHT
public final static int TOP
| Constructor Detail |
public View(Shape shape)
| Method Detail |
public Rectangle getBounds()
View.View.public Object getModel()
public Shape getShape()
View.View.public boolean intersects(Rectangle rect)
true if intersects,false otherwisepublic boolean isActive()
true if view is activetrue if view is activepublic boolean isVisible()
true if view is visibletrue if view is visiblepublic abstract void move(int x, int y)
public void move(Point offset)
public void paint(Graphics2D g2)
public void scale(double sx, double sy)
public void setActive(boolean isActive)
public void setLocation(int x, int y)
public void setLocation(Point pt)
public void setModel(Object model)
public void setToScale(double factorX, double factorY)
public void setVisible(boolean isVisible)
public void updateBounds()
Rectangle rectangle returned by getBounds()
with view. Base implementation of method does nothing.| Association Links |
to Class java.awt.geom.AffineTransform
| FOOTER | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||