|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
General abstraction of a graphical component that can be added
to a plot as an element in the hierarchy.
All such an object need support is the ability to draw itself and
provide accessors to set and get its
GraphicsParameters.
| Method Summary | |
Region |
draw(RectRegion rr,
ScaleInt sx,
ScaleInt sy,
int origin,
double widthCM,
double heightCM,
int fontSize,
OutputDevice od,
GraphicalContainerInt parentId)
Renders itself (and any children it has as a GraphicalContainerInt within the region it occupies on the device computed
by computing its RegionDescriptionInt
relative to the parents absolute dimensions, font size (in points), horizontal and vertical scales
and using the device to delegate calls to primitive drawing facilities. |
GraphicsParameters |
getParameters()
|
RegionDescriptionInt |
getRegion()
|
boolean |
isActive()
Query whether this component can have events generated for it. |
boolean |
isVisible()
Allows us to query if the component is to be drawn. |
SimpleGraphicalContainerInt |
parent()
Retrieve the parent of this component, if it has one. |
SimpleGraphicalContainerInt |
parent(SimpleGraphicalContainerInt p)
|
java.util.List |
parents()
If the component is contained in two or more graphical containers, this returns a list of all the parents. |
boolean |
setActive(boolean val)
Sets the interactive status of the object, allowing one to inhibit it from having events generated for it. |
void |
setParameters(GraphicsParameters p)
|
RegionDescriptionInt |
setRegion(RegionDescriptionInt r)
|
boolean |
setVisible(boolean val)
Set the visibility status of the component, indicating whether it should be drawn or not. |
| Method Detail |
public RegionDescriptionInt setRegion(RegionDescriptionInt r)
public RegionDescriptionInt getRegion()
public Region draw(RectRegion rr,
ScaleInt sx,
ScaleInt sy,
int origin,
double widthCM,
double heightCM,
int fontSize,
OutputDevice od,
GraphicalContainerInt parentId)
throws DrawChildException
GraphicalContainerInt within the region it occupies on the device computed
by computing its RegionDescriptionInt
relative to the parents absolute dimensions, font size (in points), horizontal and vertical scales
and using the device to delegate calls to primitive drawing facilities.rr - the parents RectRegion in normalized device coordinates (NDC).sx - the parent's horizontal scale for transforming between arbitrary units.sy - the parent's vertical scale for transforming between arbitrary units.origin - the parent's origin position.public SimpleGraphicalContainerInt parent()
public SimpleGraphicalContainerInt parent(SimpleGraphicalContainerInt p)
public java.util.List parents()
public void setParameters(GraphicsParameters p)
public GraphicsParameters getParameters()
public boolean setVisible(boolean val)
public boolean isVisible()
public boolean setActive(boolean val)
public boolean isActive()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||