Class RectangularHighlight
- java.lang.Object
-
- com.inductiveautomation.ignition.designer.designable.highlights.AbstractMultipassHighlight
-
- com.inductiveautomation.ignition.designer.designable.highlights.RectangularHighlight
-
- All Implemented Interfaces:
IHighlight
- Direct Known Subclasses:
ExpandedGroupHighlight
,ItemSelectionHighlight
,SelectionMarqueeHighlight
public class RectangularHighlight extends AbstractMultipassHighlight implements IHighlight
-
-
Field Summary
Fields Modifier and Type Field Description protected java.awt.geom.Rectangle2D
rectangle
protected boolean
zoomed
-
Fields inherited from class com.inductiveautomation.ignition.designer.designable.highlights.AbstractMultipassHighlight
DASHED_LINE, fillColor, stroke, strokeColor, THICK_LINE, THIN_LINE
-
-
Constructor Summary
Constructors Constructor Description RectangularHighlight(java.awt.geom.Rectangle2D rectangle, boolean zoomed, java.awt.Color strokeColor, java.awt.Stroke stroke)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.geom.Rectangle2D
getRectangle()
The outer bounding box of the highlightprotected java.awt.Shape
getShape(DesignPanel panel)
com.google.common.base.Optional<java.lang.String>
getTooltip()
Return the tooltip for this highlight, if applicableboolean
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)
-
Methods inherited from class com.inductiveautomation.ignition.designer.designable.highlights.AbstractMultipassHighlight
getFillColor, getFillPassCount, getFillXorColor, getStroke, getStrokeColor, getStrokePassCount, getStrokeXorColor, isFillXorMode, isStrokeXorMode, paint, setFillPass, setStrokePass
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.ignition.designer.designable.highlights.IHighlight
paint
-
-
-
-
Method Detail
-
isZoomed
public boolean isZoomed()
Description copied from interface:IHighlight
If this is true, the highlight's rectangle needs to be adjusted for zoom level in order to be accurate in 2d space. Otherwise the rectangle is already in 2d space- Specified by:
isZoomed
in interfaceIHighlight
-
getRectangle
public java.awt.geom.Rectangle2D getRectangle()
Description copied from interface:IHighlight
The outer bounding box of the highlight- Specified by:
getRectangle
in interfaceIHighlight
-
setRectangle
public void setRectangle(java.awt.geom.Rectangle2D rectangle)
-
getShape
protected final java.awt.Shape getShape(DesignPanel panel)
- Specified by:
getShape
in classAbstractMultipassHighlight
-
getTooltip
public com.google.common.base.Optional<java.lang.String> getTooltip()
Description copied from interface:IHighlight
Return the tooltip for this highlight, if applicable- Specified by:
getTooltip
in interfaceIHighlight
-
-