|
||||||||||
| 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.PolyGlyph
ucar.unidata.idv.control.drawing.FrontGlyph
public class FrontGlyph
Class FrontGlyph draws fronts
| Field Summary | |
|---|---|
static String |
ATTR_FRONTSCALE
xml attribute for the scale for the front |
static String |
ATTR_FRONTTYPE
Xml attribute name |
| Fields inherited from class ucar.unidata.idv.control.drawing.PolyGlyph |
|---|
ATTR_EXTRUDE, ATTR_SMOOTH, IDX_X, IDX_Y, IDX_Z |
| Fields inherited from class ucar.unidata.idv.control.drawing.DrawingGlyph |
|---|
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_NONE, COORD_TYPENAMES, COORD_TYPES, COORD_XY, COORD_XYZ, coordType, firstMoveEarthLocation, firstMoveLocation, IDX_ALT, IDX_LAT, IDX_LON, 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 Summary | |
|---|---|
FrontGlyph()
Ctor |
|
FrontGlyph(DrawingControl control,
DisplayEvent event)
Ctor |
|
FrontGlyph(DrawingControl control,
DisplayEvent event,
String type,
boolean smooth)
ctor |
|
| Method Summary | |
|---|---|
protected void |
addAttributes(Element e)
Populate the xml node with attrs |
protected boolean |
applyProperties(Hashtable compMap)
apply props |
boolean |
canShowArea()
Can we show calculated area |
protected void |
createDisplayable()
create the displayable |
protected FrontDrawer |
doMakeFrontDrawer()
make the frontDrawer |
void |
doStretch(DisplayEvent event)
Stretch this glyph |
protected float[][] |
getCurve()
get the curve data |
protected float |
getDefaultZPosition()
Get the default Z position for the glyph. |
String |
getExtraDescription()
get the extra description to show in gui |
boolean |
getFlipIt()
Get the FlipIt property. |
protected FrontDrawer |
getFrontDrawer()
get the frontDrawer |
double |
getFrontScale()
Get the FrontScale property. |
String |
getFrontType()
Get the FrontType property. |
protected void |
getPropertiesComponents(List comps,
Hashtable compMap)
get the prop gui comps |
protected List |
getSelectionPoints()
Get points used to select this glyph. |
String |
getTagName()
Get xml tag name to use |
String |
getTypeName()
Name to use for this glyph |
DrawingGlyph |
handleMousePressed(DisplayEvent event)
Handle event |
protected boolean |
initFinalInner()
Init at the end |
void |
initFromXml(DrawingControl control,
Element node)
Initialize from xml |
void |
projectionChanged()
Update location |
protected void |
setBaseScale(DrawingControl control,
FrontDrawer frontDrawer)
Utility |
void |
setFlipIt(boolean value)
Set the FlipIt property. |
void |
setFrontScale(double value)
Set the FrontScale property. |
void |
setFrontType(String value)
Set the FrontType property. |
protected boolean |
shouldAddFrontProperties()
should add properties for the front |
protected boolean |
shouldShowColorSelector()
show the color selector in the properties dialog |
void |
updateLocation()
Glyph moved. |
void |
viewpointChanged()
Update location |
DrawingGlyph |
xxhandleMouseDragged(DisplayEvent event)
Handle event |
protected void |
xxxxsetColor(Displayable displayable,
Color c)
noop |
| Methods inherited from class ucar.unidata.idv.control.drawing.PolyGlyph |
|---|
canShowDistance, doDeletePoint, doFlythrough, doneBeingCreated, getClosed, getExtrude, getSmooth, handleKeyPressed, handleMouseDragged, handleMouseReleased, isValid, setClosed, setExtrude, setSmooth |
| Methods inherited from class ucar.unidata.idv.control.drawing.LineGlyph |
|---|
getLineWidth, initFromUser, setLineWidth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ATTR_FRONTTYPE
public static final String ATTR_FRONTSCALE
| Constructor Detail |
|---|
public FrontGlyph()
public FrontGlyph(DrawingControl control,
DisplayEvent event)
throws VisADException,
RemoteException
control - The control I'm in.event - The display event.
RemoteException - When bad things happen
VisADException - When bad things happen
public FrontGlyph(DrawingControl control,
DisplayEvent event,
String type,
boolean smooth)
throws VisADException,
RemoteException
control - The control I'm in.event - The display event.type - Front typesmooth - is the front smooth or segmented
RemoteException - When bad things happen
VisADException - When bad things happen| Method Detail |
|---|
protected FrontDrawer getFrontDrawer()
protected boolean initFinalInner()
throws VisADException,
RemoteException
initFinalInner in class LineGlyphRemoteException - On badness
VisADException - On badness
protected FrontDrawer doMakeFrontDrawer()
throws VisADException,
RemoteException
RemoteException - on badness
VisADException - on badness
protected void xxxxsetColor(Displayable displayable,
Color c)
throws VisADException,
RemoteException
displayable - displayablec - color
RemoteException - On badness
VisADException - On badness
public void doStretch(DisplayEvent event)
throws VisADException,
RemoteException
doStretch in class PolyGlyphevent - The display event.
RemoteException - On badness
VisADException - On badnesspublic String getExtraDescription()
getExtraDescription in class DrawingGlyph
protected void getPropertiesComponents(List comps,
Hashtable compMap)
getPropertiesComponents in class PolyGlyphcomps - List of compscompMap - comp map
protected void createDisplayable()
throws VisADException,
RemoteException
createDisplayable in class LineGlyphRemoteException - on badness
VisADException - on badnessprotected boolean shouldAddFrontProperties()
protected boolean shouldShowColorSelector()
shouldShowColorSelector in class DrawingGlyph
protected boolean applyProperties(Hashtable compMap)
throws VisADException,
RemoteException
applyProperties in class LineGlyphcompMap - holds comps
RemoteException - On badness
VisADException - On badnesspublic boolean canShowArea()
canShowArea in class PolyGlyph
public void initFromXml(DrawingControl control,
Element node)
throws VisADException,
RemoteException
initFromXml in class PolyGlyphcontrol - The control I'm in.node - The xml node
RemoteException - On badness
VisADException - On badnessprotected void addAttributes(Element e)
addAttributes in class PolyGlyphe - Xml node
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 setBaseScale(DrawingControl control,
FrontDrawer frontDrawer)
throws VisADException,
RemoteException
control - The control we're infrontDrawer - The drawer
RemoteException - On badness
VisADException - On badnessprotected List getSelectionPoints()
getSelectionPoints in class PolyGlyphprotected float getDefaultZPosition()
getDefaultZPosition in class DrawingGlyph
public void updateLocation()
throws VisADException,
RemoteException
updateLocation in class PolyGlyphRemoteException - On badness
VisADException - On badness
protected float[][] getCurve()
throws VisADException,
RemoteException
RemoteException - on badness
VisADException - on badness
public DrawingGlyph handleMousePressed(DisplayEvent event)
throws VisADException,
RemoteException
handleMousePressed in class PolyGlyphevent - The display event.
RemoteException - When bad things happen
VisADException - When bad things happen
public DrawingGlyph xxhandleMouseDragged(DisplayEvent event)
throws VisADException,
RemoteException
event - The display event.
RemoteException - On badness
VisADException - On badnesspublic String getTagName()
getTagName in class PolyGlyphpublic String getTypeName()
getTypeName in class PolyGlyphpublic void setFrontType(String value)
value - The new value for FrontTypepublic String getFrontType()
public void setFlipIt(boolean value)
value - The new value for FlipItpublic boolean getFlipIt()
public void setFrontScale(double value)
value - The new value for FrontScalepublic double getFrontScale()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||