Class MapTip
- java.lang.Object
-
- oracle.spatial.network.nfe.vis.maps.graphics.MapTip
-
public class MapTip extends java.lang.Object
Displays a one line tip that contains a short description of a feature in hover.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
minimumHeight
protected int
minimumWidth
protected int
padding
Visual design: Shape: rectangle Border thickness: hairline Border color: #9BA2B0 Background Gradient: #C1CCD7 to #FFFFFF Alpha: 90% Text: Font-family: Tahoma Font-size: 11px Font Weight: Normal Color: #383A47protected int
preferredHeight
protected int
preferredWidth
-
Constructor Summary
Constructors Constructor Description MapTip()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double
calculateTextLength(java.awt.Graphics2D g)
java.awt.Font
getFont()
int
getHeight()
java.lang.String
getText()
int
getWidth()
boolean
isBorderless()
boolean
isDraggable()
boolean
isNeverShrink()
boolean
isRounded()
boolean
isShadow()
long
render(java.awt.Graphics2D g, java.awt.geom.Point2D topLeftCorner)
protected void
renderTipShadow()
protected void
renderTipShapeAndText()
void
setBorderless(boolean borderless)
void
setDraggable(boolean draggable)
Sets the flag to indicate if this map tip can be dragged around the map.void
setFont(java.awt.Font font)
void
setNeverShrink(boolean neverShrink)
void
setRounded(boolean rounded)
void
setShadow(boolean shadow)
void
setText(java.lang.String text)
-
-
-
Field Detail
-
padding
protected int padding
Visual design: Shape: rectangle Border thickness: hairline Border color: #9BA2B0 Background Gradient: #C1CCD7 to #FFFFFF Alpha: 90% Text: Font-family: Tahoma Font-size: 11px Font Weight: Normal Color: #383A47
-
minimumWidth
protected int minimumWidth
-
minimumHeight
protected int minimumHeight
-
preferredWidth
protected int preferredWidth
-
preferredHeight
protected int preferredHeight
-
-
Method Detail
-
calculateTextLength
protected double calculateTextLength(java.awt.Graphics2D g)
-
render
public long render(java.awt.Graphics2D g, java.awt.geom.Point2D topLeftCorner)
-
renderTipShapeAndText
protected void renderTipShapeAndText()
-
renderTipShadow
protected void renderTipShadow()
-
getText
public java.lang.String getText()
-
setText
public void setText(java.lang.String text)
-
getFont
public java.awt.Font getFont()
-
setFont
public void setFont(java.awt.Font font)
-
isRounded
public boolean isRounded()
-
setRounded
public void setRounded(boolean rounded)
-
isDraggable
public boolean isDraggable()
-
setDraggable
public void setDraggable(boolean draggable)
Sets the flag to indicate if this map tip can be dragged around the map.- Parameters:
draggable
-
-
isShadow
public boolean isShadow()
-
setShadow
public void setShadow(boolean shadow)
-
isBorderless
public boolean isBorderless()
-
setBorderless
public void setBorderless(boolean borderless)
-
isNeverShrink
public boolean isNeverShrink()
-
setNeverShrink
public void setNeverShrink(boolean neverShrink)
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
-