|
||||||||||
| 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.LineGlyph
ucar.unidata.idv.control.drawing.ShapeGlyph
ucar.unidata.idv.control.drawing.TransectGlyph
public class TransectGlyph
Class TransectGlyph. Displays a shape.
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.idv.control.drawing.ShapeGlyph |
|---|
ATTR_SHAPETYPE, SHAPE_DIAMOND, SHAPE_HARROW, SHAPE_LINE, SHAPE_NAMES, SHAPE_OVAL, SHAPE_RECTANGLE, SHAPE_VARROW, SHAPES |
| 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 | |
|---|---|
TransectGlyph()
Ctor |
|
TransectGlyph(DrawingControl control,
DisplayEvent event,
boolean editable)
The ctor |
|
TransectGlyph(DrawingControl control,
DisplayEvent event,
boolean editable,
boolean showText)
The ctor |
|
| Method Summary | |
|---|---|
protected boolean |
applyProperties(Hashtable compMap)
Apply the properties |
void |
checkBoxVisibility()
Check if we need to show/hide the max data distance box |
void |
checkTimeVisibility()
override this because we ignore time |
String |
getDescription()
Get the glyph description |
String |
getEndText()
Get the EndText property. |
String |
getExtraDescription()
Add on extra description. |
boolean |
getForDisplay()
Get the ForDisplay property. |
Real |
getMaxDataDistance()
Get the MaxDataDistance property. |
protected int |
getNumInterpolationPoints()
How many points do we interpolate along the line |
protected void |
getPropertiesComponents(List comps,
Hashtable compMap)
Add to the properties list |
String |
getStartText()
Get the StartText property. |
String |
getTypeName()
Name to use for this glyph |
ViewDescriptor |
getViewDescriptor()
Get the ViewDescriptor property. |
DrawingGlyph |
handleMouseDragged(DisplayEvent event)
Handle event |
protected boolean |
initFinalInner()
Init at the end |
boolean |
isSelectable()
Can the user select this glyph |
void |
setEndText(String value)
Set the EndText property. |
void |
setLineWidth(float value)
Set the LineWidth property. |
void |
setMaxDataDistance(Real value)
Set the MaxDataDistance property. |
void |
setStartText(String value)
Set the StartText property. |
void |
setViewDescriptor(ViewDescriptor value)
Set the ViewDescriptor property. |
void |
setVisible(boolean visible)
Toggle the visibility |
void |
updateLocation()
Handle glyph moved |
| Methods inherited from class ucar.unidata.idv.control.drawing.ShapeGlyph |
|---|
addAttributes, canShowArea, canShowDistance, constrainedTo2D, getShapeType, getTagName, handleMousePressed, initFromXml, interpolate, isValid, makeRectangle, setShapeType |
| Methods inherited from class ucar.unidata.idv.control.drawing.LineGlyph |
|---|
createDisplayable, getLineWidth, initFromUser |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TransectGlyph()
public TransectGlyph(DrawingControl control,
DisplayEvent event,
boolean editable)
throws VisADException,
RemoteException
control - The control I'm in.event - The display event.editable - Is this editable
RemoteException - When bad things happen
VisADException - When bad things happen
public TransectGlyph(DrawingControl control,
DisplayEvent event,
boolean editable,
boolean showText)
throws VisADException,
RemoteException
control - The control I'm in.event - The display event.editable - Is this glyph editableshowText - Should we show the end point text
RemoteException - When bad things happen
VisADException - When bad things happen| Method Detail |
|---|
protected int getNumInterpolationPoints()
getNumInterpolationPoints in class ShapeGlyph
public void setVisible(boolean visible)
throws VisADException,
RemoteException
setVisible in class DrawingGlyphvisible - is visible
RemoteException - On badness
VisADException - On badness
public void checkTimeVisibility()
throws VisADException,
RemoteException
checkTimeVisibility in class DrawingGlyphRemoteException - On badness
VisADException - On badness
public void checkBoxVisibility()
throws VisADException,
RemoteException
RemoteException - On badness
VisADException - On badness
public void updateLocation()
throws VisADException,
RemoteException
updateLocation in class ShapeGlyphRemoteException - On badness
VisADException - On badnesspublic void setLineWidth(float value)
setLineWidth in class LineGlyphvalue - The new value for LineWidthpublic String getExtraDescription()
getExtraDescription in class DrawingGlyph
protected boolean initFinalInner()
throws VisADException,
RemoteException
initFinalInner in class LineGlyphRemoteException - On badness
VisADException - On badness
public DrawingGlyph handleMouseDragged(DisplayEvent event)
throws VisADException,
RemoteException
handleMouseDragged in class ShapeGlyphevent - The display event.
RemoteException - When bad things happen
VisADException - When bad things happen
protected void getPropertiesComponents(List comps,
Hashtable compMap)
getPropertiesComponents in class LineGlyphcomps - List of label/widgetscompMap - Optional mapping to hold components for later access
protected boolean applyProperties(Hashtable compMap)
throws VisADException,
RemoteException
applyProperties in class LineGlyphcompMap - Optional map that holds components
RemoteException - On badness
VisADException - On badnesspublic String getTypeName()
getTypeName in class ShapeGlyphpublic void setStartText(String value)
value - The new value for StartTextpublic String getStartText()
public void setEndText(String value)
value - The new value for EndTextpublic String getEndText()
public String getDescription()
getDescription in class ShapeGlyphpublic boolean isSelectable()
isSelectable in class DrawingGlyphpublic boolean getForDisplay()
public void setViewDescriptor(ViewDescriptor value)
value - The new value for ViewDescriptorpublic ViewDescriptor getViewDescriptor()
public void setMaxDataDistance(Real value)
value - The new value for MaxDataDistancepublic Real getMaxDataDistance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||