|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.idv.control.drawing.DrawingGlyph
ucar.unidata.idv.control.drawing.TextGlyph
public class TextGlyph
Class TextGlyph Draws text
| Field Summary | |
|---|---|
static String |
ATTR_FONT
xml attr names |
static String |
ATTR_FONTFACE
xml attr names |
static String |
ATTR_FONTSIZE
xml attr names |
static String |
ATTR_FONTSTRING
xml attr names |
static String |
ATTR_JUSTIFICATION
xml attr names |
static String |
ATTR_MARKER
xml attr names |
static String |
ATTR_MARKERSCALE
xml attr names |
static String |
ATTR_SHOWMARKER
xml attr names |
static String |
JUST_BOTTOM
Justification name |
static String |
JUST_CENTER
Justification name |
static String |
JUST_LEFT
Justification name |
static String |
JUST_RIGHT
Justification name |
static String |
JUST_TOP
Justification name |
protected double |
markerScale
marker scale |
protected String |
markerType
marker type |
protected boolean |
showMarker
Show the marker |
| Fields inherited from class ucar.unidata.idv.control.drawing.DrawingGlyph |
|---|
actualPoints, ATTR_COLOR, ATTR_COORDTYPE, ATTR_FILLED, ATTR_FULLLATLON, ATTR_LINEWIDTH, ATTR_NAME, ATTR_PICKABLE, ATTR_POINTS, ATTR_TEXT, ATTR_TIMES, ATTR_ZPOSITION, control, COORD_LABELS, COORD_LATLON, COORD_LATLONALT, 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, 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 Summary | |
|---|---|
TextGlyph()
ctor |
|
TextGlyph(DrawingControl control,
DisplayEvent event,
String text)
ctor |
|
| Method Summary | |
|---|---|
protected void |
addAttributes(Element e)
Populate the xml node with attrs |
protected boolean |
applyProperties(Hashtable compMap)
Handle the property apply. |
String |
getExtraDescription()
Get the extra descripition used in the JTable listing |
Font |
getFont()
Get the Font property. |
String |
getHorizontalJustification()
Get the Justification property. |
int |
getHtmlWidth()
Get the HtmlWidth property. |
double |
getMarkerScale()
Get the MarkerScale property. |
String |
getMarkerType()
Get the MarkerType property. |
protected void |
getPropertiesComponents(List comps,
Hashtable compMap)
Make the properties widgetsF |
boolean |
getShowMarker()
Get the ShowMarker property. |
String |
getTagName()
The tag to use in the xml |
String |
getText()
Get the Text property. |
String |
getTypeName()
Get the name of this glyph type |
String |
getVerticalJustification()
Get the VerticalJustification property. |
DrawingGlyph |
handleCreation(DisplayEvent event)
Initialize after creation |
DrawingGlyph |
handleMouseMoved(DisplayEvent event)
Handle event |
DrawingGlyph |
handleMousePressed(DisplayEvent event)
Handle event |
protected boolean |
initFinalInner()
Do the final initialization |
boolean |
initFromUser(DrawingControl control,
DisplayEvent event)
User created me. |
void |
initFromXml(DrawingControl control,
Element node)
Xml created me |
boolean |
mousePressed(DisplayEvent event)
Handle the event |
void |
projectionChanged()
Projection changed. |
void |
setBeenRemoved(boolean value)
Has this glyph been removed |
void |
setFont(Font value)
Set the Font property. |
void |
setHorizontalJustification(String value)
Set the Justification property. |
void |
setHtmlWidth(int value)
Set the HtmlWidth property. |
void |
setMarkerScale(double value)
Set the MarkerScale property. |
void |
setMarkerType(String value)
Set the MarkerType property. |
void |
setShowMarker(boolean value)
Set the ShowMarker property. |
void |
setText(String value)
Set the Text property. |
void |
setVerticalJustification(String value)
Set the VerticalJustification property. |
void |
updateLocation()
Handle glyph moved |
void |
viewpointChanged()
Viewpoint changed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String JUST_LEFT
public static final String JUST_CENTER
public static final String JUST_RIGHT
public static final String JUST_TOP
public static final String JUST_BOTTOM
public static final String ATTR_MARKER
public static final String ATTR_MARKERSCALE
public static final String ATTR_SHOWMARKER
public static final String ATTR_JUSTIFICATION
public static final String ATTR_FONTSIZE
public static final String ATTR_FONTFACE
public static final String ATTR_FONTSTRING
public static final String ATTR_FONT
protected boolean showMarker
protected double markerScale
protected String markerType
| Constructor Detail |
|---|
public TextGlyph()
public TextGlyph(DrawingControl control,
DisplayEvent event,
String text)
control - The control I'm inevent - The event when I was createdtext - Initial text| Method Detail |
|---|
public String getExtraDescription()
getExtraDescription in class DrawingGlyph
public DrawingGlyph handleCreation(DisplayEvent event)
throws VisADException,
RemoteException
handleCreation in class DrawingGlyphevent - The event
RemoteException - On badness
VisADException - On badness
public boolean initFromUser(DrawingControl control,
DisplayEvent event)
throws VisADException,
RemoteException
initFromUser in class DrawingGlyphcontrol - The control I'm inevent - The event
RemoteException - On badness
VisADException - On badness
public boolean mousePressed(DisplayEvent event)
throws VisADException,
RemoteException
mousePressed in class DrawingGlyphevent - the event
RemoteException - On badness
VisADException - On badness
public void initFromXml(DrawingControl control,
Element node)
throws VisADException,
RemoteException
initFromXml in class DrawingGlyphcontrol - The controlnode - The xml
RemoteException - On badness
VisADException - On badnesspublic String getTagName()
getTagName in class DrawingGlyphprotected void addAttributes(Element e)
addAttributes in class DrawingGlyphe - Xml nodepublic void setBeenRemoved(boolean value)
setBeenRemoved in class DrawingGlyphvalue - been removed
protected boolean initFinalInner()
throws VisADException,
RemoteException
initFinalInner in class DrawingGlyphRemoteException - On badness
VisADException - On badness
public DrawingGlyph handleMousePressed(DisplayEvent event)
throws VisADException,
RemoteException
handleMousePressed in class DrawingGlyphevent - The event
RemoteException - When bad things happen
VisADException - When bad things happen
public DrawingGlyph handleMouseMoved(DisplayEvent event)
throws VisADException,
RemoteException
handleMouseMoved in class DrawingGlyphevent - The event
RemoteException - When bad things happen
VisADException - When bad things happenpublic void setFont(Font value)
value - The new value for Fontpublic Font getFont()
protected boolean applyProperties(Hashtable compMap)
throws VisADException,
RemoteException
applyProperties in class DrawingGlyphcompMap - Holds property widgets
RemoteException - On badness
VisADException - On badness
public void viewpointChanged()
throws VisADException,
RemoteException
viewpointChanged in class DrawingGlyphRemoteException - On badness
VisADException - On badness
public void projectionChanged()
throws VisADException,
RemoteException
projectionChanged in class DrawingGlyphRemoteException - On badness
VisADException - On badness
protected void getPropertiesComponents(List comps,
Hashtable compMap)
getPropertiesComponents in class DrawingGlyphcomps - List of componentscompMap - Map to hold name to widgetpublic String getTypeName()
getTypeName in class DrawingGlyph
public void updateLocation()
throws VisADException,
RemoteException
updateLocation in class DrawingGlyphRemoteException - On badness
VisADException - On badnesspublic void setText(String value)
value - The new value for Textpublic String getText()
public void setHorizontalJustification(String value)
value - The new value for Justificationpublic String getHorizontalJustification()
public void setVerticalJustification(String value)
value - The new value for VerticalJustificationpublic String getVerticalJustification()
public void setShowMarker(boolean value)
throws VisADException,
RemoteException
value - The new value for ShowMarker
RemoteException - On badness
VisADException - On badnesspublic boolean getShowMarker()
public void setMarkerType(String value)
throws VisADException,
RemoteException
value - The new value for MarkerType
RemoteException - On badness
VisADException - On badnesspublic String getMarkerType()
public void setMarkerScale(double value)
throws VisADException,
RemoteException
value - The new value for MarkerScale
RemoteException - On badness
VisADException - On badnesspublic double getMarkerScale()
public void setHtmlWidth(int value)
value - The new value for HtmlWidthpublic int getHtmlWidth()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||