Object Class Prospectus: |
members:
|
|
"Object" parent
|
|
Pointer to "parent" Object.
|
|
"Geometry" geometric
|
|
Pointer to geometric data.
|
|
"Object_list" childObjects
|
|
Pointer to linked list of "child" objects.
|
|
int fill_color
|
|
Data for color of object, possibly null.
|
|
int line_thickness .
|
|
Data for thickness of object's line border.
|
methods:
|
|
boolean add_Child ( "Object" newchild )
|
|
Adds newchild to childObjects.
|
|
boolean transform_by ( "TransfMatr" trans )
|
|
Modifies gemoetric member by trans, then modifies members of childObjects.
|
|
boolean refresh ( )
|
|
Updates information for screen.
|
Polygon Class (Extending Geometry) Prospectus: |
members:
|
|
int[]_list list_of_points
|
|
Linked list of gemoetric points.
|
methods:
|
|
boolean add_point ( int x, int y )
|
|
Adds a point with x value and y value to list_of_points.
|
|
boolean transform_by ( "TransfMatr" trans )
|
|
Transforms data using the appropriate means.
|
|
boolean redraw ( int fill_color, int line_thickness )
|
|
Draws the geometric data using the (possibly null) fill_color and line_thickness.
|
Circle Class (Extending Geometry) Prospectus: |
members:
|
|
int center
|
|
Defines center of circle.
|
|
int radius
|
|
Defines radius of circle.
|
methods:
|
|
boolean define_radius_and_center ( int radius, int center )
|
|
Adds a point with radius value and center value to list_of_points.
|
|
boolean transform_by ( "TransfMatr" trans )
|
|
Transforms data using the appropriate means.
|
|
boolean redraw ( int fill_color, int line_thickness )
|
|
Draws the specific geometric data using the (possibly null) fill_color and line_thickness.
|