Class MapTip
- java.lang.Object
-
- oracle.spatial.network.nfe.vis.maps.graphics.MapTip
-
public class MapTip extends java.lang.ObjectDisplays a one line tip that contains a short description of a feature in hover.
-
-
Field Summary
Fields Modifier and Type Field Description protected intminimumHeightprotected intminimumWidthprotected intpaddingVisual 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 intpreferredHeightprotected intpreferredWidth
-
Constructor Summary
Constructors Constructor Description MapTip()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doublecalculateTextLength(java.awt.Graphics2D g)java.awt.FontgetFont()intgetHeight()java.lang.StringgetText()intgetWidth()booleanisBorderless()booleanisDraggable()booleanisNeverShrink()booleanisRounded()booleanisShadow()longrender(java.awt.Graphics2D g, java.awt.geom.Point2D topLeftCorner)protected voidrenderTipShadow()protected voidrenderTipShapeAndText()voidsetBorderless(boolean borderless)voidsetDraggable(boolean draggable)Sets the flag to indicate if this map tip can be dragged around the map.voidsetFont(java.awt.Font font)voidsetNeverShrink(boolean neverShrink)voidsetRounded(boolean rounded)voidsetShadow(boolean shadow)voidsetText(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()
-
-