All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sdoOracle.sdoCanvas

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----sdoOracle.sdoCanvas

public class sdoCanvas
extends Canvas
Class sdoCanvas implements a drawing area. All drawings are performed on the offscreen graphics, so the method repaint() must be called to refresh the screen.

See Also:
sdoInfo, sdoDimension, sdoGeometryList, sdoGIDList

Constructor Index

 o sdoCanvas()
Constructs a new sdoCanvas object.

Method Index

 o clearScreen()
Clears the screen contents.
 o device2world(Point)
Transforms a device coordinate into a world coordinate.
 o drawLine(sdoLine)
Draws the points of a sdoLine object.
 o drawLine(WPointList)
Draws the points of a WPointList object.
 o drawPoint(WPoint)
Draws the point coordinate as a circle.
 o drawPolygon(sdoPolygon)
Draws the points of a sdoPolygon object.
 o drawRectangle(Box)
Draws a rectangle specified by input Box object.
 o drawText(String, WPoint, Font)
Draws the ipunt text at the specified location.
 o fillPoint(WPoint)
Fills the point location represented by a circle.
 o fillPolygon(sdoPolygon)
Fills a sdoPolygon object.
 o GenericPolygon()
Returns a generic closed list of points that may be used as a query geometry.
 o getPixMap()
Returns the screen contents.
 o handleEvent(Event)
Handles events.
 o Height()
Returns the world coordinates height.
 o operation(int, boolean)
Sets the operation mode (0-point, 1-zoom, 2-query box, 3-query polygon, 4-query circle).
 o paint(Graphics)
Draws the screen contents.
 o queryCircleR()
Returns the query circle radius.
 o queryCircleX()
Returns the query circle center x coordinate.
 o queryCircleY()
Returns the query circle center y coordinate.
 o queryIsVisible()
Returns the visibility of query box (0 = invisible, 1 = box visible, 2 = polygon visible, 3 = circle visible).
 o queryIsVisible(short)
Sets the visibility of query box (0 = invisible, 1 = box visible, 2 = polygon visible, 3 = circle visible).
 o queryLowerLeftX()
Returns the query box x lower left coordinate.
 o queryLowerLeftY()
Returns the query box y lower left coordinate.
 o queryUpperRightX()
Returns the query box x upper right coordinate.
 o queryUpperRightY()
Returns the query box y upper right coordinate.
 o setLogo(Image, Image)
Associates a image logo.
 o setParent(Component)
Associates a parent component.
 o setPixMap(Image)
Redraws the screen contents of all objects.
 o setPolylineColor(Color)
Sets the polyline color.
 o setTextArea(sdoTextArea, sdoErrorWindow)
Associates a text area to write information.
 o setTransf(double, double, double, double, boolean)
Defines the trasnformation between world coordinates and device coordinates.
 o update(Graphics)
Updates the screen contents.
 o Width()
Returns the world coordinates width.
 o world2device(WPoint)
Transforms a world coordinate into a device coordinate.
 o zoomIsVisible()
Returns the visibility of zoom box (0 = invisible, 1 = visible).
 o zoomIsVisible(short)
Sets the visibility of zoom box (0 = invisible, 1 = visible).
 o zoomLowerLeftX()
Returns the zoom box x lower left coordinate.
 o zoomLowerLeftY()
Returns the zoom box y lower left coordinate.
 o zoomUpperRightX()
Returns the zoom box x upper right coordinate.
 o zoomUpperRightY()
Returns the zoom box y upper right coordinate.

Constructors

 o sdoCanvas
 public sdoCanvas()
Constructs a new sdoCanvas object.

Methods

 o setTextArea
 public void setTextArea(sdoTextArea text,
                         sdoErrorWindow error)
Associates a text area to write information. This method is just for debug.

Parameters:
text - sdoTextArea object.
error - sdoErrorWindow object.
 o setParent
 public void setParent(Component c)
Associates a parent component.

Parameters:
c - Component object.
 o setLogo
 public void setLogo(Image logo,
                     Image logo_gray)
Associates a image logo.

Parameters:
logo - highlighted Image object.
logo_gray - Image object.
 o GenericPolygon
 public WPointList GenericPolygon()
Returns a generic closed list of points that may be used as a query geometry.

Returns:
returns a WPointList object or null.
 o setTransf
 public void setTransf(double x1,
                       double y1,
                       double x2,
                       double y2,
                       boolean aspect)
Defines the trasnformation between world coordinates and device coordinates.

 o world2device
 public Point world2device(WPoint p)
Transforms a world coordinate into a device coordinate.

Returns:
returns a Point object with the device coordinate.
 o device2world
 public WPoint device2world(Point np)
Transforms a device coordinate into a world coordinate.

Returns:
returns a Point object with the world coordinate.
 o Width
 public double Width()
Returns the world coordinates width.

Returns:
returns a double value.
 o Height
 public double Height()
Returns the world coordinates height.

Returns:
returns a double value.
 o operation
 public void operation(int oper,
                       boolean doNow)
Sets the operation mode (0-point, 1-zoom, 2-query box, 3-query polygon, 4-query circle).

 o handleEvent
 public boolean handleEvent(Event e)
Handles events.

Returns:
returns a boolean value true or false.
Overrides:
handleEvent in class Component
 o clearScreen
 public void clearScreen()
Clears the screen contents.

 o paint
 public void paint(Graphics g)
Draws the screen contents.

Overrides:
paint in class Canvas
 o update
 public void update(Graphics g)
Updates the screen contents.

Overrides:
update in class Component
 o getPixMap
 public Image getPixMap()
Returns the screen contents.

 o setPixMap
 public void setPixMap(Image pixmap)
Redraws the screen contents of all objects.

 o queryLowerLeftX
 public double queryLowerLeftX()
Returns the query box x lower left coordinate.

Returns:
returns a double value.
 o queryLowerLeftY
 public double queryLowerLeftY()
Returns the query box y lower left coordinate.

Returns:
returns a double value.
 o queryUpperRightX
 public double queryUpperRightX()
Returns the query box x upper right coordinate.

Returns:
returns a double value.
 o queryUpperRightY
 public double queryUpperRightY()
Returns the query box y upper right coordinate.

Returns:
returns a double value.
 o queryCircleX
 public double queryCircleX()
Returns the query circle center x coordinate.

Returns:
returns a double value.
 o queryCircleY
 public double queryCircleY()
Returns the query circle center y coordinate.

Returns:
returns a double value.
 o queryCircleR
 public double queryCircleR()
Returns the query circle radius.

Returns:
returns a double value.
 o queryIsVisible
 public short queryIsVisible()
Returns the visibility of query box (0 = invisible, 1 = box visible, 2 = polygon visible, 3 = circle visible).

Returns:
returns a short value.
 o queryIsVisible
 public void queryIsVisible(short q)
Sets the visibility of query box (0 = invisible, 1 = box visible, 2 = polygon visible, 3 = circle visible).

 o zoomLowerLeftX
 public double zoomLowerLeftX()
Returns the zoom box x lower left coordinate.

Returns:
returns a double value.
 o zoomLowerLeftY
 public double zoomLowerLeftY()
Returns the zoom box y lower left coordinate.

Returns:
returns a double value.
 o zoomUpperRightX
 public double zoomUpperRightX()
Returns the zoom box x upper right coordinate.

Returns:
returns a double value.
 o zoomUpperRightY
 public double zoomUpperRightY()
Returns the zoom box y upper right coordinate.

Returns:
returns a double value.
 o zoomIsVisible
 public short zoomIsVisible()
Returns the visibility of zoom box (0 = invisible, 1 = visible).

Returns:
returns a short value.
 o zoomIsVisible
 public void zoomIsVisible(short z)
Sets the visibility of zoom box (0 = invisible, 1 = visible).

 o drawPolygon
 public void drawPolygon(sdoPolygon poly)
Draws the points of a sdoPolygon object.

 o fillPolygon
 public void fillPolygon(sdoPolygon poly)
Fills a sdoPolygon object.

 o drawLine
 public void drawLine(sdoLine line)
Draws the points of a sdoLine object.

 o drawLine
 public void drawLine(WPointList line)
Draws the points of a WPointList object.

 o drawText
 public void drawText(String string,
                      WPoint wc,
                      Font font)
Draws the ipunt text at the specified location.

 o drawRectangle
 public void drawRectangle(Box box)
Draws a rectangle specified by input Box object.

 o drawPoint
 public void drawPoint(WPoint wc)
Draws the point coordinate as a circle.

 o fillPoint
 public void fillPoint(WPoint wc)
Fills the point location represented by a circle.

 o setPolylineColor
 public void setPolylineColor(Color c)
Sets the polyline color.


All Packages  Class Hierarchy  This Package  Previous  Next  Index