public class TextGlyph extends DrawingGlyph
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_FONT
xml attr names
|
static java.lang.String |
ATTR_FONTFACE
xml attr names
|
static java.lang.String |
ATTR_FONTSIZE
xml attr names
|
static java.lang.String |
ATTR_FONTSTRING
xml attr names
|
static java.lang.String |
ATTR_JUSTIFICATION
xml attr names
|
static java.lang.String |
ATTR_MARKER
xml attr names
|
static java.lang.String |
ATTR_MARKERSCALE
xml attr names
|
static java.lang.String |
ATTR_SHOWMARKER
xml attr names
|
static java.lang.String |
JUST_BOTTOM
Justification name
|
static java.lang.String |
JUST_CENTER
Justification name
|
static java.lang.String |
JUST_LEFT
Justification name
|
static java.lang.String |
JUST_RIGHT
Justification name
|
static java.lang.String |
JUST_TOP
Justification name
|
protected double |
markerScale
marker scale
|
protected java.lang.String |
markerType
marker type
|
protected boolean |
showMarker
Show the marker
|
actualPoints, ATTR_BGCOLOR, ATTR_COLOR, ATTR_COORDTYPE, ATTR_FILLED, ATTR_FULLLATLON, ATTR_LINEWIDTH, ATTR_NAME, ATTR_PICKABLE, ATTR_POINTS, ATTR_TEXT, ATTR_TIMEFORMAT, ATTR_TIMES, ATTR_ZPOSITION, control, COORD_LABELS, COORD_LATLON, COORD_LATLONALT, COORD_LONLAT, COORD_NONE, COORD_TYPENAMES, COORD_TYPES, COORD_XY, COORD_XYZ, coordType, firstMoveEarthLocation, firstMoveLocation, IDX_ALT, IDX_LAT, IDX_LON, IDX_X, IDX_Y, IDX_Z, oldVisibility, parentDisplayable, points, propDialog, propertiesUp, PT_X, PT_Y, PT_Z, selectionDisplayable, stretchIndex, tabbedPane, TAG_ARROW, TAG_FRONT, TAG_HIGH, TAG_IMAGE, TAG_LOW, TAG_MOVIE, TAG_POLYGON, TAG_SHAPE, TAG_SYMBOL, TAG_TEXT, uniqueCnt, zPosition
Constructor and Description |
---|
TextGlyph()
ctor
|
TextGlyph(DrawingControl control,
visad.DisplayEvent event,
java.lang.String text)
ctor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addAttributes(org.w3c.dom.Element e)
Populate the xml node with attrs
|
protected boolean |
applyProperties(java.util.Hashtable compMap)
Handle the property apply.
|
java.lang.String |
getExtraDescription()
Get the extra descripition used in the JTable listing
|
java.awt.Font |
getFont()
Get the Font property.
|
java.lang.String |
getHorizontalJustification()
Get the Justification property.
|
int |
getHtmlWidth()
Get the HtmlWidth property.
|
boolean |
getIsRaster()
is this glyph a raster
|
double |
getMarkerScale()
Get the MarkerScale property.
|
java.lang.String |
getMarkerType()
Get the MarkerType property.
|
protected void |
getPropertiesComponents(java.util.List comps,
java.util.Hashtable compMap)
Make the properties widgetsF
|
boolean |
getShowMarker()
Get the ShowMarker property.
|
java.lang.String |
getTagName()
The tag to use in the xml
|
java.lang.String |
getText()
Get the Text property.
|
java.lang.String |
getTypeName()
Get the name of this glyph type
|
java.lang.String |
getVerticalJustification()
Get the VerticalJustification property.
|
DrawingGlyph |
handleCreation(visad.DisplayEvent event)
Initialize after creation
|
DrawingGlyph |
handleMouseMoved(visad.DisplayEvent event)
Handle event
|
DrawingGlyph |
handleMousePressed(visad.DisplayEvent event)
Handle event
|
protected boolean |
initFinalInner()
Do the final initialization
|
boolean |
initFromUser(DrawingControl control,
visad.DisplayEvent event)
User created me.
|
void |
initFromXml(DrawingControl control,
org.w3c.dom.Element node)
Xml created me
|
boolean |
mousePressed(visad.DisplayEvent event)
Handle the event
|
void |
projectionChanged()
Projection changed.
|
void |
setBeenRemoved(boolean value)
Has this glyph been removed
|
void |
setFont(java.awt.Font value)
Set the Font property.
|
void |
setHorizontalJustification(java.lang.String value)
Set the Justification property.
|
void |
setHtmlWidth(int value)
Set the HtmlWidth property.
|
void |
setMarkerScale(double value)
Set the MarkerScale property.
|
void |
setMarkerType(java.lang.String value)
Set the MarkerType property.
|
void |
setShowMarker(boolean value)
Set the ShowMarker property.
|
void |
setText(java.lang.String value)
Set the Text property.
|
void |
setVerticalJustification(java.lang.String value)
Set the VerticalJustification property.
|
protected boolean |
shouldShowBgColorSelector()
_more_
|
void |
updateLocation()
Handle glyph moved
|
void |
viewpointChanged()
Viewpoint changed.
|
addDisplayable, addTime, canShowArea, canShowDistance, checkTimeVisibility, checkVisibility, closestPoint, constrainedTo2D, distance, distanceBetween, distanceBetween, doDeletePoint, doInterpolatedStretch, doMove, doneBeingCreated, doStretch, evaluateJython, getArea, getAreaString, getBeenRemoved, getBeingCreated, getBgcolor, getBoundingBox, getBoxPoint, getBoxPoint, getBoxPoint, getColor, getCoordType, getCreatedByUser, getDefaultZPosition, getDescription, getDisplayable, getDistance, getEditable, getElement, getFilled, getFixedAltitude, getFullLatLon, getLatLons, getLatLons, getName, getParent, getPickable, getPoint, getPoints, getPointValues, getPointValues, getPointValuesDouble, getPointValuesDouble, getSelectionPoints, getTimeField, getTimePropertiesComponents, getTimeValues, getVisibleFlag, getZPosition, handleKeyPressed, handleMouseDragged, handleMouseReleased, hide, initFinal, initFromBundle, initMove, initStretch, isFrontDisplay, isInFlatSpace, isInLatLonSpace, isInXYSpace, isSelectable, isValid, isVisible, makePoint, moveTo, processPointStrings, processPointStrings, removeDisplayable, setActualPoints, setBgcolor, setColor, setColor, setCoordType, setCreatedByUser, setEditable, setFilled, setFullLatLon, setName, setPickable, setPoints, setProperties, setSelected, setTimeValues, setVisible, setVisibleFlag, setZPosition, shouldShowColorSelector, show, smoothCurve, squared, swap, swap, toLatLonAlt, toString, tryToFill, writePoints
public static final java.lang.String JUST_LEFT
public static final java.lang.String JUST_CENTER
public static final java.lang.String JUST_RIGHT
public static final java.lang.String JUST_TOP
public static final java.lang.String JUST_BOTTOM
public static final java.lang.String ATTR_MARKER
public static final java.lang.String ATTR_MARKERSCALE
public static final java.lang.String ATTR_SHOWMARKER
public static final java.lang.String ATTR_JUSTIFICATION
public static final java.lang.String ATTR_FONTSIZE
public static final java.lang.String ATTR_FONTFACE
public static final java.lang.String ATTR_FONTSTRING
public static final java.lang.String ATTR_FONT
protected boolean showMarker
protected double markerScale
protected java.lang.String markerType
public TextGlyph()
public TextGlyph(DrawingControl control, visad.DisplayEvent event, java.lang.String text)
control
- The control I'm inevent
- The event when I was createdtext
- Initial textpublic boolean getIsRaster()
getIsRaster
in class DrawingGlyph
public java.lang.String getExtraDescription()
getExtraDescription
in class DrawingGlyph
public DrawingGlyph handleCreation(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
handleCreation
in class DrawingGlyph
event
- The eventjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic boolean initFromUser(DrawingControl control, visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
initFromUser
in class DrawingGlyph
control
- The control I'm inevent
- The eventjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic boolean mousePressed(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
mousePressed
in class DrawingGlyph
event
- the eventjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void initFromXml(DrawingControl control, org.w3c.dom.Element node) throws visad.VisADException, java.rmi.RemoteException
initFromXml
in class DrawingGlyph
control
- The controlnode
- The xmljava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic java.lang.String getTagName()
getTagName
in class DrawingGlyph
protected void addAttributes(org.w3c.dom.Element e)
addAttributes
in class DrawingGlyph
e
- Xml nodepublic void setBeenRemoved(boolean value)
setBeenRemoved
in class DrawingGlyph
value
- been removedprotected boolean initFinalInner() throws visad.VisADException, java.rmi.RemoteException
initFinalInner
in class DrawingGlyph
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic DrawingGlyph handleMousePressed(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
handleMousePressed
in class DrawingGlyph
event
- The eventjava.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic DrawingGlyph handleMouseMoved(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
handleMouseMoved
in class DrawingGlyph
event
- The eventjava.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic void setFont(java.awt.Font value)
value
- The new value for Fontpublic java.awt.Font getFont()
protected boolean shouldShowBgColorSelector()
shouldShowBgColorSelector
in class DrawingGlyph
protected boolean applyProperties(java.util.Hashtable compMap) throws visad.VisADException, java.rmi.RemoteException
applyProperties
in class DrawingGlyph
compMap
- Holds property widgetsjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void viewpointChanged() throws visad.VisADException, java.rmi.RemoteException
viewpointChanged
in class DrawingGlyph
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void projectionChanged() throws visad.VisADException, java.rmi.RemoteException
projectionChanged
in class DrawingGlyph
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected void getPropertiesComponents(java.util.List comps, java.util.Hashtable compMap)
getPropertiesComponents
in class DrawingGlyph
comps
- List of componentscompMap
- Map to hold name to widgetpublic java.lang.String getTypeName()
getTypeName
in class DrawingGlyph
public void updateLocation() throws visad.VisADException, java.rmi.RemoteException
updateLocation
in class DrawingGlyph
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void setText(java.lang.String value)
value
- The new value for Textpublic java.lang.String getText()
public void setHorizontalJustification(java.lang.String value)
value
- The new value for Justificationpublic java.lang.String getHorizontalJustification()
public void setVerticalJustification(java.lang.String value)
value
- The new value for VerticalJustificationpublic java.lang.String getVerticalJustification()
public void setShowMarker(boolean value) throws visad.VisADException, java.rmi.RemoteException
value
- The new value for ShowMarkerjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic boolean getShowMarker()
public void setMarkerType(java.lang.String value) throws visad.VisADException, java.rmi.RemoteException
value
- The new value for MarkerTypejava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic java.lang.String getMarkerType()
public void setMarkerScale(double value) throws visad.VisADException, java.rmi.RemoteException
value
- The new value for MarkerScalejava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic double getMarkerScale()
public void setHtmlWidth(int value)
value
- The new value for HtmlWidthpublic int getHtmlWidth()