public class RectangularHighlight extends AbstractMultipassHighlight implements IHighlight
Modifier and Type | Field and Description |
---|---|
protected java.awt.geom.Rectangle2D |
rectangle |
protected boolean |
zoomed |
DASHED_LINE, fillColor, stroke, strokeColor, THICK_LINE, THIN_LINE
Constructor and Description |
---|
RectangularHighlight(java.awt.geom.Rectangle2D rectangle,
boolean zoomed,
java.awt.Color strokeColor,
java.awt.Stroke stroke) |
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getRectangle()
The outer bounding box of the highlight
|
protected java.awt.Shape |
getShape(DesignPanel panel) |
com.google.common.base.Optional<java.lang.String> |
getTooltip()
Return the tooltip for this highlight, if applicable
|
boolean |
isZoomed()
If this is true, the highlight's rectangle needs to be adjusted for zoom level in order to be accurate in 2d
space.
|
void |
setRectangle(java.awt.geom.Rectangle2D rectangle) |
getFillColor, getFillPassCount, getFillXORColor, getStroke, getStrokeColor, getStrokePassCount, getStrokeXORColor, isFillXORMode, isStrokeXORMode, paint, setFillPass, setStrokePass
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
paint
protected java.awt.geom.Rectangle2D rectangle
protected boolean zoomed
public RectangularHighlight(java.awt.geom.Rectangle2D rectangle, boolean zoomed, java.awt.Color strokeColor, java.awt.Stroke stroke)
public boolean isZoomed()
IHighlight
isZoomed
in interface IHighlight
public java.awt.geom.Rectangle2D getRectangle()
IHighlight
getRectangle
in interface IHighlight
public void setRectangle(java.awt.geom.Rectangle2D rectangle)
protected final java.awt.Shape getShape(DesignPanel panel)
getShape
in class AbstractMultipassHighlight
public com.google.common.base.Optional<java.lang.String> getTooltip()
IHighlight
getTooltip
in interface IHighlight