All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class GraphicPlotter.GraphicBoundsUC

java.lang.Object
   |
   +----GraphicPlotter.RectangleUC
           |
           +----GraphicPlotter.GraphicBoundsUC

public class GraphicBoundsUC
extends RectangleUC
The bounds of a graphic element consists of the bounding rectangle and an indication of whether the graphic element is transparent.


Variable Index

 o extraPixels
Extra pixels added to the AWT bounds when a graphic element is laid-out.
 o transparent
If true, graphic elements covered by the bounding rectangle of this one are painted.

Constructor Index

 o GraphicBoundsUC()
Default constructor leaves fields with default values.
 o GraphicBoundsUC(double, double, double, double, boolean)
Construct a GraphicBoundsUC from a set of field values.
 o GraphicBoundsUC(GraphicBoundsUC)
Construct a GraphicBoundsUC from another one.

Method Index

 o assign(GraphicBoundsUC)
Set fields of this object equal to those of another one.
 o equals(GraphicBoundsUC)
Return whether the fields of another object are equal in value to the fields of this one.
 o toString()
Return the string representation.

Variables

 o transparent
 public boolean transparent
If true, graphic elements covered by the bounding rectangle of this one are painted. If a graphic element does not draw in its entire bounding rectangle, it should set this field to true when its obtainBounds method is invoked.

 o extraPixels
 public Insets extraPixels
Extra pixels added to the AWT bounds when a graphic element is laid-out. These extra pixels are used to draw decorations (such as arrow heads) whose size does not scale with the size of the graphic element. This field should be set when the obtainBounds methods of the graphic element is invoked. The default value of null indicates that the graphic element uses no extra pixels.

Constructors

 o GraphicBoundsUC
 public GraphicBoundsUC()
Default constructor leaves fields with default values.

 o GraphicBoundsUC
 public GraphicBoundsUC(GraphicBoundsUC other)
Construct a GraphicBoundsUC from another one.

 o GraphicBoundsUC
 public GraphicBoundsUC(double x,
                        double y,
                        double width,
                        double height,
                        boolean transparent)
Construct a GraphicBoundsUC from a set of field values.

Methods

 o assign
 public GraphicBoundsUC assign(GraphicBoundsUC other)
Set fields of this object equal to those of another one.

Returns:
this
 o equals
 public boolean equals(GraphicBoundsUC other)
Return whether the fields of another object are equal in value to the fields of this one.

 o toString
 public String toString()
Return the string representation.

Overrides:
toString in class RectangleUC

All Packages  Class Hierarchy  This Package  Previous  Next  Index