public abstract class AbstractSfcGridHighlight extends java.lang.Object implements IHighlight
| Modifier and Type | Field and Description |
|---|---|
protected SfcDisplayPanel |
displayPanel |
protected java.awt.Point |
location |
| Constructor and Description |
|---|
AbstractSfcGridHighlight(SfcDisplayPanel panel,
java.awt.Point location) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Rectangle2D |
getRectangle()
The outer bounding box of the highlight
|
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.
|
protected java.awt.Rectangle |
location() |
void |
paint(DesignPanel panel,
java.awt.Graphics2D g)
Paint this highlight
|
protected abstract void |
paint(java.awt.Graphics2D g) |
protected java.awt.Point location
protected SfcDisplayPanel displayPanel
public AbstractSfcGridHighlight(SfcDisplayPanel panel, java.awt.Point location)
protected java.awt.Rectangle location()
public java.awt.geom.Rectangle2D getRectangle()
IHighlightgetRectangle in interface IHighlightpublic void paint(DesignPanel panel, java.awt.Graphics2D g)
IHighlightpaint in interface IHighlightprotected abstract void paint(java.awt.Graphics2D g)
public boolean isZoomed()
IHighlightisZoomed in interface IHighlightpublic com.google.common.base.Optional<java.lang.String> getTooltip()
IHighlightgetTooltip in interface IHighlight