public static class DrawableObject.Shape extends DrawableObject
DrawableObject.Image, DrawableObject.Label, DrawableObject.Shape, DrawableObject.TickLabel, DrawableObject.Transformm_transform| Constructor and Description |
|---|
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) |
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
|
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) |
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) |
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) |
Shape(int compType,
java.awt.Shape shape,
java.awt.Color borderColor,
java.awt.Color fillColor,
java.util.HashMap sfxMap,
java.awt.geom.AffineTransform transform) |
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) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getAffineTransform, getComponentIndex, getComponentType, getLabelDimensions, getLabelObject, getTickLabelObject, isSelected, isVisible, render, setSelected, setVisiblepublic 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)
transform - Instance of AffineTransform to apply
to this shape before rendering itsfxMap - Instance of HashMap containing
SFX settings for this objectfillColor - Instance of Color representing
the fill color of this shapeborderColor - Instance of Color representing
the border color of this shapeshape - Instance of ShapecompType - 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 objectpublic 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)
public Shape(int compType,
java.awt.Shape shape,
java.awt.Color borderColor,
java.awt.Color fillColor,
java.util.HashMap sfxMap,
java.awt.geom.AffineTransform transform)
public 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)
public 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)
public 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)
public 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)
public boolean contains(double x,
double y,
boolean useTruncated)
contains in class DrawableObjectuseTruncated - True if the truncated rectangle
should be used, False otherwisey - Integer representing the Y location of the pointx - Integer representing the X location of the pointTrue if the point is contained within
this object, False otherwisepublic java.awt.Shape getShape()
Shape instance.Shapepublic java.awt.Color getBorderColor()
Color instance.Colorpublic java.awt.Color getFillColor()
Color instance.Colorpublic java.util.HashMap getSFX()
SFX object associated with this shape.SFX instance.SFXpublic java.awt.Rectangle getOuterRect()