Skip navigation links 
 
oracle.dss.gauge
Class DrawableObject.Shape
java.lang.Object
  
oracle.dss.gauge.DrawableObject
      
oracle.dss.gauge.DrawableObject.Shape
- Enclosing class:
 
- DrawableObject
 
- 
public static class DrawableObject.Shape
 
- extends DrawableObject
 
This class defines a shape.
 
 
  
 
 
  
 
| 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 | 
 
 
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)
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()
Skip navigation links 
 
Copyright © 1997, 2015, Oracle. All rights reserved.