Class AbstractSfcGridHighlight
- java.lang.Object
- 
- com.inductiveautomation.sfc.designer.workspace.AbstractSfcGridHighlight
 
- 
- All Implemented Interfaces:
- IHighlight
 - Direct Known Subclasses:
- ErrorHighlight
 
 public abstract class AbstractSfcGridHighlight extends java.lang.Object implements IHighlight 
- 
- 
Field SummaryFields Modifier and Type Field Description protected SfcDisplayPaneldisplayPanelprotected java.awt.Pointlocation
 - 
Constructor SummaryConstructors Constructor Description AbstractSfcGridHighlight(SfcDisplayPanel panel, java.awt.Point location)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.awt.geom.Rectangle2DgetRectangle()The outer bounding box of the highlightcom.google.common.base.Optional<java.lang.String>getTooltip()Return the tooltip for this highlight, if applicablebooleanisZoomed()If this is true, the highlight's rectangle needs to be adjusted for zoom level in order to be accurate in 2d space.protected java.awt.Rectanglelocation()voidpaint(DesignPanel panel, java.awt.Graphics2D g)Paint this highlightprotected abstract voidpaint(java.awt.Graphics2D g)
 
- 
- 
- 
Field Detail- 
locationprotected java.awt.Point location 
 - 
displayPanelprotected SfcDisplayPanel displayPanel 
 
- 
 - 
Constructor Detail- 
AbstractSfcGridHighlightpublic AbstractSfcGridHighlight(SfcDisplayPanel panel, java.awt.Point location) 
 
- 
 - 
Method Detail- 
locationprotected java.awt.Rectangle location() 
 - 
getRectanglepublic java.awt.geom.Rectangle2D getRectangle() Description copied from interface:IHighlightThe outer bounding box of the highlight- Specified by:
- getRectanglein interface- IHighlight
 
 - 
paintpublic void paint(DesignPanel panel, java.awt.Graphics2D g) Description copied from interface:IHighlightPaint this highlight- Specified by:
- paintin interface- IHighlight
 
 - 
paintprotected abstract void paint(java.awt.Graphics2D g) 
 - 
isZoomedpublic boolean isZoomed() Description copied from interface:IHighlightIf 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:
- isZoomedin interface- IHighlight
 
 - 
getTooltippublic com.google.common.base.Optional<java.lang.String> getTooltip() Description copied from interface:IHighlightReturn the tooltip for this highlight, if applicable- Specified by:
- getTooltipin interface- IHighlight
 
 
- 
 
-