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

E12063-08

oracle.dss.gauge
Class DrawableObject.Shape

java.lang.Object
  extended by oracle.dss.gauge.DrawableObject
      extended by oracle.dss.gauge.DrawableObject.Shape
Enclosing class:
DrawableObject

public static class DrawableObject.Shape
extends DrawableObject

This class defines a shape.


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.Shape(int compType, int index, java.util.Map map, java.awt.Shape shape, java.awt.Color borderColor, java.awt.Color fillColor, java.util.HashMap sfxMap, java.awt.geom.AffineTransform transform)
           
DrawableObject.Shape(int compType, int index, java.util.Map map, java.awt.Shape shape, java.awt.Rectangle rect, java.awt.Color borderColor, java.awt.Color fillColor, java.util.HashMap sfxMap, java.awt.geom.AffineTransform transform)
          Constructor for a shape object
DrawableObject.Shape(int compType, int index, java.awt.Shape shape, java.awt.Color borderColor, java.awt.Color fillColor, java.util.HashMap sfxMap, java.awt.geom.AffineTransform transform)
           
DrawableObject.Shape(int compType, int index, java.awt.Shape shape, java.awt.Rectangle rect, java.awt.Color borderColor, java.awt.Color fillColor, java.util.HashMap sfxMap, java.awt.geom.AffineTransform transform)
           
DrawableObject.Shape(int compType, java.util.Map map, java.awt.Shape shape, java.awt.Color borderColor, java.awt.Color fillColor, java.util.HashMap sfxMap, java.awt.geom.AffineTransform transform)
           
DrawableObject.Shape(int compType, java.awt.Shape shape, java.awt.Color borderColor, java.awt.Color fillColor, java.util.HashMap sfxMap, java.awt.geom.AffineTransform transform)
           
DrawableObject.Shape(int compType, java.awt.Shape shape, java.awt.Rectangle rect, java.awt.Color borderColor, java.awt.Color fillColor, java.util.HashMap sfxMap, java.awt.geom.AffineTransform transform)
           
 
Method Summary
 boolean contains(double x, double y, boolean useTruncated)
          Perform an inclusion test on the object based on the given point
 java.awt.Color getBorderColor()
          Gets the border color of this shape.
 java.awt.Color getFillColor()
          Gets the color to use in filling this shape.
 java.awt.Rectangle getOuterRect()
           
 java.util.HashMap getSFX()
          Gets the SFX object associated with this shape.
 java.awt.Shape getShape()
          Gets the rectangle defining this filled area.
 
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.Shape

public DrawableObject.Shape(int compType,
                            int index,
                            java.util.Map map,
                            java.awt.Shape shape,
                            java.awt.Rectangle rect,
                            java.awt.Color borderColor,
                            java.awt.Color fillColor,
                            java.util.HashMap sfxMap,
                            java.awt.geom.AffineTransform transform)
Constructor for a shape object

Parameters:
transform - Instance of AffineTransform to apply to this shape before rendering it
sfxMap - Instance of HashMap containing SFX settings for this object
fillColor - Instance of Color representing the fill color of this shape
borderColor - Instance of Color representing the border color of this shape
shape - Instance of Shape
compType - Type of component to which this shape belongs; valid values are constants in the GaugeConstants class beginning with ID_
index - The index of threshold or indicator object

DrawableObject.Shape

public DrawableObject.Shape(int compType,
                            java.util.Map map,
                            java.awt.Shape shape,
                            java.awt.Color borderColor,
                            java.awt.Color fillColor,
                            java.util.HashMap sfxMap,
                            java.awt.geom.AffineTransform transform)

DrawableObject.Shape

public DrawableObject.Shape(int compType,
                            java.awt.Shape shape,
                            java.awt.Color borderColor,
                            java.awt.Color fillColor,
                            java.util.HashMap sfxMap,
                            java.awt.geom.AffineTransform transform)

DrawableObject.Shape

public DrawableObject.Shape(int compType,
                            java.awt.Shape shape,
                            java.awt.Rectangle rect,
                            java.awt.Color borderColor,
                            java.awt.Color fillColor,
                            java.util.HashMap sfxMap,
                            java.awt.geom.AffineTransform transform)

DrawableObject.Shape

public DrawableObject.Shape(int compType,
                            int index,
                            java.util.Map map,
                            java.awt.Shape shape,
                            java.awt.Color borderColor,
                            java.awt.Color fillColor,
                            java.util.HashMap sfxMap,
                            java.awt.geom.AffineTransform transform)

DrawableObject.Shape

public DrawableObject.Shape(int compType,
                            int index,
                            java.awt.Shape shape,
                            java.awt.Color borderColor,
                            java.awt.Color fillColor,
                            java.util.HashMap sfxMap,
                            java.awt.geom.AffineTransform transform)

DrawableObject.Shape

public DrawableObject.Shape(int compType,
                            int index,
                            java.awt.Shape shape,
                            java.awt.Rectangle rect,
                            java.awt.Color borderColor,
                            java.awt.Color fillColor,
                            java.util.HashMap sfxMap,
                            java.awt.geom.AffineTransform transform)
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

getShape

public java.awt.Shape getShape()
Gets the rectangle defining this filled area.

Returns:
Shape instance.
See Also:
Shape

getBorderColor

public java.awt.Color getBorderColor()
Gets the border color of this shape.

Returns:
Color instance.
See Also:
Color

getFillColor

public java.awt.Color getFillColor()
Gets the color to use in filling this shape.

Returns:
Color instance.
See Also:
Color

getSFX

public java.util.HashMap getSFX()
Gets the SFX object associated with this shape.

Returns:
SFX instance.
See Also:
SFX

getOuterRect

public java.awt.Rectangle getOuterRect()

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

E12063-08

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