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
-
sdoCanvas()
- Constructs a new sdoCanvas object.
-
clearScreen()
- Clears the screen contents.
-
device2world(Point)
- Transforms a device coordinate into a world coordinate.
-
drawLine(sdoLine)
- Draws the points of a sdoLine object.
-
drawLine(WPointList)
- Draws the points of a WPointList object.
-
drawPoint(WPoint)
- Draws the point coordinate as a circle.
-
drawPolygon(sdoPolygon)
- Draws the points of a sdoPolygon object.
-
drawRectangle(Box)
- Draws a rectangle specified by input Box object.
-
drawText(String, WPoint, Font)
- Draws the ipunt text at the specified location.
-
fillPoint(WPoint)
- Fills the point location represented by a circle.
-
fillPolygon(sdoPolygon)
- Fills a sdoPolygon object.
-
GenericPolygon()
- Returns a generic closed list of points that may be
used as a query geometry.
-
getPixMap()
- Returns the screen contents.
-
handleEvent(Event)
- Handles events.
-
Height()
- Returns the world coordinates height.
-
operation(int, boolean)
- Sets the operation mode (0-point, 1-zoom, 2-query box,
3-query polygon, 4-query circle).
-
paint(Graphics)
- Draws the screen contents.
-
queryCircleR()
- Returns the query circle radius.
-
queryCircleX()
- Returns the query circle center x coordinate.
-
queryCircleY()
- Returns the query circle center y coordinate.
-
queryIsVisible()
- Returns the visibility of query box (0 = invisible, 1 = box visible,
2 = polygon visible,
3 = circle visible).
-
queryIsVisible(short)
- Sets the visibility of query box (0 = invisible, 1 = box visible,
2 = polygon visible,
3 = circle visible).
-
queryLowerLeftX()
- Returns the query box x lower left coordinate.
-
queryLowerLeftY()
- Returns the query box y lower left coordinate.
-
queryUpperRightX()
- Returns the query box x upper right coordinate.
-
queryUpperRightY()
- Returns the query box y upper right coordinate.
-
setLogo(Image, Image)
- Associates a image logo.
-
setParent(Component)
- Associates a parent component.
-
setPixMap(Image)
- Redraws the screen contents of all objects.
-
setPolylineColor(Color)
- Sets the polyline color.
-
setTextArea(sdoTextArea, sdoErrorWindow)
- Associates a text area to write information.
-
setTransf(double, double, double, double, boolean)
- Defines the trasnformation between world coordinates and
device coordinates.
-
update(Graphics)
- Updates the screen contents.
-
Width()
- Returns the world coordinates width.
-
world2device(WPoint)
- Transforms a world coordinate into a device coordinate.
-
zoomIsVisible()
- Returns the visibility of zoom box (0 = invisible, 1 = visible).
-
zoomIsVisible(short)
- Sets the visibility of zoom box (0 = invisible, 1 = visible).
-
zoomLowerLeftX()
- Returns the zoom box x lower left coordinate.
-
zoomLowerLeftY()
- Returns the zoom box y lower left coordinate.
-
zoomUpperRightX()
- Returns the zoom box x upper right coordinate.
-
zoomUpperRightY()
- Returns the zoom box y upper right coordinate.
sdoCanvas
public sdoCanvas()
- Constructs a new sdoCanvas object.
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.
setParent
public void setParent(Component c)
- Associates a parent component.
- Parameters:
- c - Component object.
setLogo
public void setLogo(Image logo,
Image logo_gray)
- Associates a image logo.
- Parameters:
- logo - highlighted Image object.
- logo_gray - Image object.
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.
setTransf
public void setTransf(double x1,
double y1,
double x2,
double y2,
boolean aspect)
- Defines the trasnformation between world coordinates and
device coordinates.
world2device
public Point world2device(WPoint p)
- Transforms a world coordinate into a device coordinate.
- Returns:
- returns a Point object with the device coordinate.
device2world
public WPoint device2world(Point np)
- Transforms a device coordinate into a world coordinate.
- Returns:
- returns a Point object with the world coordinate.
Width
public double Width()
- Returns the world coordinates width.
- Returns:
- returns a double value.
Height
public double Height()
- Returns the world coordinates height.
- Returns:
- returns a double value.
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).
handleEvent
public boolean handleEvent(Event e)
- Handles events.
- Returns:
- returns a boolean value true or false.
- Overrides:
- handleEvent in class Component
clearScreen
public void clearScreen()
- Clears the screen contents.
paint
public void paint(Graphics g)
- Draws the screen contents.
- Overrides:
- paint in class Canvas
update
public void update(Graphics g)
- Updates the screen contents.
- Overrides:
- update in class Component
getPixMap
public Image getPixMap()
- Returns the screen contents.
setPixMap
public void setPixMap(Image pixmap)
- Redraws the screen contents of all objects.
queryLowerLeftX
public double queryLowerLeftX()
- Returns the query box x lower left coordinate.
- Returns:
- returns a double value.
queryLowerLeftY
public double queryLowerLeftY()
- Returns the query box y lower left coordinate.
- Returns:
- returns a double value.
queryUpperRightX
public double queryUpperRightX()
- Returns the query box x upper right coordinate.
- Returns:
- returns a double value.
queryUpperRightY
public double queryUpperRightY()
- Returns the query box y upper right coordinate.
- Returns:
- returns a double value.
queryCircleX
public double queryCircleX()
- Returns the query circle center x coordinate.
- Returns:
- returns a double value.
queryCircleY
public double queryCircleY()
- Returns the query circle center y coordinate.
- Returns:
- returns a double value.
queryCircleR
public double queryCircleR()
- Returns the query circle radius.
- Returns:
- returns a double value.
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.
queryIsVisible
public void queryIsVisible(short q)
- Sets the visibility of query box (0 = invisible, 1 = box visible,
2 = polygon visible,
3 = circle visible).
zoomLowerLeftX
public double zoomLowerLeftX()
- Returns the zoom box x lower left coordinate.
- Returns:
- returns a double value.
zoomLowerLeftY
public double zoomLowerLeftY()
- Returns the zoom box y lower left coordinate.
- Returns:
- returns a double value.
zoomUpperRightX
public double zoomUpperRightX()
- Returns the zoom box x upper right coordinate.
- Returns:
- returns a double value.
zoomUpperRightY
public double zoomUpperRightY()
- Returns the zoom box y upper right coordinate.
- Returns:
- returns a double value.
zoomIsVisible
public short zoomIsVisible()
- Returns the visibility of zoom box (0 = invisible, 1 = visible).
- Returns:
- returns a short value.
zoomIsVisible
public void zoomIsVisible(short z)
- Sets the visibility of zoom box (0 = invisible, 1 = visible).
drawPolygon
public void drawPolygon(sdoPolygon poly)
- Draws the points of a sdoPolygon object.
fillPolygon
public void fillPolygon(sdoPolygon poly)
- Fills a sdoPolygon object.
drawLine
public void drawLine(sdoLine line)
- Draws the points of a sdoLine object.
drawLine
public void drawLine(WPointList line)
- Draws the points of a WPointList object.
drawText
public void drawText(String string,
WPoint wc,
Font font)
- Draws the ipunt text at the specified location.
drawRectangle
public void drawRectangle(Box box)
- Draws a rectangle specified by input Box object.
drawPoint
public void drawPoint(WPoint wc)
- Draws the point coordinate as a circle.
fillPoint
public void fillPoint(WPoint wc)
- Fills the point location represented by a circle.
setPolylineColor
public void setPolylineColor(Color c)
- Sets the polyline color.
All Packages Class Hierarchy This Package Previous Next Index