Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1)

E12063-03


oracle.dss.gauge
Class DrawableObject.Image

java.lang.Object
  extended by oracle.dss.gauge.DrawableObject
      extended by oracle.dss.gauge.DrawableObject.Image

Enclosing class:
DrawableObject

public static class DrawableObject.Image
extends DrawableObject

This class defines an area.


Nested Class Summary

 

Nested classes/interfaces inherited from class oracle.dss.gauge.DrawableObject
DrawableObject.Image, DrawableObject.Label, DrawableObject.Shape, DrawableObject.TickLabel, DrawableObject.Transform

 

Field Summary

 

Fields inherited from class oracle.dss.gauge.DrawableObject
m_transform

 

Constructor Summary
DrawableObject.Image(int compType, java.lang.String url, java.awt.Image img, java.awt.geom.Rectangle2D rect, double scaleRatio, java.awt.image.ImageObserver imgObs, java.awt.geom.AffineTransform transform)
          Constructor of an image object.

 

Method Summary
 boolean contains(double x, double y, boolean useTruncated)
          Perform an inclusion test on the object based on the given point
 java.awt.geom.Rectangle2D getBounds()
          Gets the rectangle defining this filled area.
 java.awt.Image getImage()
          Gets the URL used to load this image.
 java.awt.image.ImageObserver getImageObserver()
          Gets the ImageObserver for this image.
 double getScaleRatio()
          Gets the ratio in which to scale the image.
 java.lang.String getURL()
          Gets the URL used to load this image.

 

Methods inherited from class oracle.dss.gauge.DrawableObject
getAffineTransform, getComponentIndex, getComponentType, getLabelDimensions, getLabelObject, getTickLabelObject, isSelected, isVisible, render, setSelected, setVisible

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DrawableObject.Image

public DrawableObject.Image(int compType,
                            java.lang.String url,
                            java.awt.Image img,
                            java.awt.geom.Rectangle2D rect,
                            double scaleRatio,
                            java.awt.image.ImageObserver imgObs,
                            java.awt.geom.AffineTransform transform)
Constructor of an image object. The java.awt.Image instance may be null, but the URL to the load image will never be null.
Parameters:
transform - Instance of AffineTransform to apply to this shape before rendering it
imgObs - Instance of ImageObserver
scaleRatio - Ratio in which to scale image
rect - Bounds of image
url - Instance of String that is the URL used to load the image
img - Instance of java.awt.Image
compType - Type of component to which this object belongs; valid values are constants in the GaugeConstants class beginning with ID_

Method Detail

contains

public boolean contains(double x,
                        double y,
                        boolean useTruncated)
Perform an inclusion test on the object based on the given point
Specified by:
contains in class DrawableObject
Parameters:
useTruncated - True if the truncated rectangle should be used, False otherwise
y - Integer representing the Y location of the point
x - Integer representing the X location of the point
Returns:
True if the point is contained within this object, False otherwise

getURL

public java.lang.String getURL()
Gets the URL used to load this image.
Returns:
String instance.

getImage

public java.awt.Image getImage()
Gets the URL used to load this image.
Returns:
java.awt.Image instance.

getBounds

public java.awt.geom.Rectangle2D getBounds()
Gets the rectangle defining this filled area.
Returns:
Rectangle instance.
See Also:
Rectangle

getScaleRatio

public double getScaleRatio()
Gets the ratio in which to scale the image.
Returns:
int The scale ratio.

getImageObserver

public java.awt.image.ImageObserver getImageObserver()
Gets the ImageObserver for this image.
Returns:
ImageObserver.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1)

E12063-03


Copyright © 1997, 2009, Oracle. All rights reserved.