JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d.shape
Class Rectangle

java.lang.Object
  |
  +--com.klg.jclass.chart3d.shape.BaseShape
        |
        +--com.klg.jclass.chart3d.shape.Rectangle
All Implemented Interfaces:
JCSymbolShape, Serializable
Direct Known Subclasses:
Cube, Cylinder

public class Rectangle
extends BaseShape
implements Serializable

The Rectangle class is an extension of the BaseShape class that draws a rectangle for a point. Used internally for com.klg.jclass.chart3d.JCSymbolStyle.RECTANGLE.

See Also:
BaseShape, JCSymbolShape, JCSymbolStyle, Serialized Form

Field Summary
 
Fields inherited from class com.klg.jclass.chart3d.shape.BaseShape
size, x, y
 
Constructor Summary
Rectangle()
          Default constructor (required)
 
Method Summary
 void draw(Graphics gc, int xorg, int yorg)
          Draws the Rectangle symbol at the specified coordinates using the specified size
 String getName()
          Return a localized name for this shape
 
Methods inherited from class com.klg.jclass.chart3d.shape.BaseShape
resize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rectangle

public Rectangle()
Default constructor (required)

Method Detail

getName

public String getName()
Return a localized name for this shape

Specified by:
getName in interface JCSymbolShape
Specified by:
getName in class BaseShape
Returns:
The name of this shape

draw

public void draw(Graphics gc,
                 int xorg,
                 int yorg)
Draws the Rectangle symbol at the specified coordinates using the specified size

Specified by:
draw in interface JCSymbolShape
Overrides:
draw in class BaseShape
Parameters:
gc - graphics context to use for drawing
xorg - x origin point
yorg - y origin point

Copyright © 2004 Quest Software Inc..
All rights reserved.