|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.idv.control.DisplayControlBase
ucar.unidata.idv.control.DisplayControlImpl
ucar.unidata.idv.control.TextDisplayControl
public class TextDisplayControl
DisplayControl for displaying straight text or HTML.
| Nested Class Summary | |
|---|---|
static class |
TextDisplayControl.PolyGlyph
Class PolyGlyph |
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary | |
|---|---|
static int |
DEFAULT_HEIGHT
default height |
static int |
DEFAULT_WIDTH
default width |
static Dimension |
EDITOR_PREFERRRED_SIZE
Preferred dimension for the editor pane |
static Dimension |
SCROLLPANE_PREFERRRED_SIZE
Preferred dimension for the scroll pane |
static String |
SHARE_URL
property for sharing URL |
static String |
TAG_APPLET
applet tag |
static String |
TAG_COMPONENT
component tag |
static String |
TAG_DISPLAY
display tag |
static String |
TAG_INTERNALIMAGE
For having internal images (from auxdata) in html |
static String |
TAG_VIEW
view tag |
| Fields inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
categories, colorScaleInfo, colorScales, contourInfo, contourInfoParams, controlContext, ctw, cw, dataSelection, defaultView, defaultViewManager, DISPLAY_LIST_NAME, displayListTable, displayMasters, displayUnit, helpUrl, initNoteText, instantiatedWithNoData, noteTextArea, noteWrapper, paramName, requestProperties, settingVisibility, sharables, showNoteText, skipSlider, srw, version, viewManagers |
| Fields inherited from interface ucar.unidata.idv.DisplayControl |
|---|
BOTTOM_LEGEND, DEFAULT_PROBEFORMAT, PREF_PREFIX, PREF_PROBEFORMAT, PREF_REMOVEONWINDOWCLOSE, PREF_SAMPLING_MODE, PREF_STANDALONE_REMOVEONCLOSE, PREF_STANDALONE_REMOVEONCLOSE_ASK, PROP_LEGENDICON, SIDE_LEGEND |
| Constructor Summary | |
|---|---|
TextDisplayControl()
Default constructor; does nothing. |
|
| Method Summary | |
|---|---|
void |
click(String linkText,
boolean doHistory)
Respond to a click. |
void |
click(String linkText,
boolean doHistory,
boolean andShare)
Respond to a click. |
protected Container |
doMakeContents()
Make the contents for this control |
protected Component |
doMakeMainButtonPanel()
Override the base class button panel method |
void |
doRemove()
Remove from the IDV |
String |
getCurrentUrl()
Get the current URL. |
String |
getDisplayName()
Get the display name. |
ArrayList |
getGlyphHistory()
Get the glyph history. |
List |
getGlyphs()
Get the Glyphs property. |
ArrayList |
getHistory()
Get the history list. |
int |
getHistoryIdx()
Get the index into the history |
String |
getRootPath()
Get the root path. |
protected String |
getTitle()
Overwrite the base class method to return the filename or url. |
void |
goToUrl(String url)
Go to a particular URL |
void |
history(int delta)
Scroll through the history. |
void |
hyperlinkUpdate(HyperlinkEvent e)
Respond to any hyperlink events: ACTIVATED, ENTERED, EXITED. |
boolean |
init(DataChoice dataChoice)
Initialize this class with the supplied DataChoice. |
void |
mouseClicked(MouseEvent e)
Public method for mouse clicked events |
void |
mouseDragged(MouseEvent e)
Public method for mouse dragged events |
void |
mouseEntered(MouseEvent e)
Public method for mouse entered events |
void |
mouseExited(MouseEvent e)
Public method for mouse exited events |
void |
mouseMoved(MouseEvent e)
Public method for mouse moved events |
void |
mousePressed(MouseEvent e)
Public method for mouse Pressed events |
void |
mouseReleased(MouseEvent e)
Public method for mouse released events |
void |
print(Element elem,
String tab)
Print the element |
void |
processForm(String action,
String data)
Process the form data. |
void |
receiveShareData(Sharable from,
Object dataId,
Object[] data)
Receive shared data from another control |
void |
reload()
Reload the page |
void |
setGlyphHistory(ArrayList h)
Set the history list. |
void |
setGlyphs(List value)
Set the Glyphs property. |
void |
setHistory(ArrayList h)
Set the history list. |
void |
setHistoryIdx(int h)
Set the index into the history |
void |
writeTestArchive(String archiveName)
test code |
| Methods inherited from class ucar.unidata.idv.control.DisplayControlBase |
|---|
boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToScreen, calculateRectangle, createStationTfo, earthToBox, earthToBox, earthToBoxTuple, earthToScreen, formatLevels, getScreenCenter, getSelectedStation, isLeftButtonDown, logException, logException, makeEarthLocation, screenToBox, screenToBox, screenToEarth, setStations, setStations, toBox, toEarth, userErrorMessage, userMessage |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setShareGroup, setSharing, setUniqueId, showSharableDialog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ucar.unidata.collab.Sharable |
|---|
getShareGroup, getSharing, getUniqueId |
| Field Detail |
|---|
public static final String SHARE_URL
public static final String TAG_INTERNALIMAGE
public static final String TAG_VIEW
public static final String TAG_DISPLAY
public static final String TAG_APPLET
public static final String TAG_COMPONENT
public static final int DEFAULT_WIDTH
public static final int DEFAULT_HEIGHT
public static final Dimension EDITOR_PREFERRRED_SIZE
public static final Dimension SCROLLPANE_PREFERRRED_SIZE
| Constructor Detail |
|---|
public TextDisplayControl()
| Method Detail |
|---|
public boolean init(DataChoice dataChoice)
throws VisADException,
RemoteException
DataChoice.
init in class DisplayControlImpldataChoice - choice to describe the data
RemoteException - Java RMI error
VisADException - VisAD Errorprotected String getTitle()
getTitle in class DisplayControlImpl
protected Container doMakeContents()
throws VisADException,
RemoteException
doMakeContents in class DisplayControlImplRemoteException - Java RMI error
VisADException - VisAD Errorpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenere - mouse eventpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenere - mouse eventpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenere - mouse eventpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenere - mouse eventpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenere - mouse eventpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenere - mouse eventpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenere - mouse eventpublic void reload()
public void print(Element elem,
String tab)
elem - element to printtab - tab (prefix) stringpublic ArrayList getHistory()
public void setHistory(ArrayList h)
h - list to usepublic ArrayList getGlyphHistory()
public void setGlyphHistory(ArrayList h)
h - history listpublic void setGlyphs(List value)
value - The new value for Glyphspublic List getGlyphs()
public int getHistoryIdx()
public void setHistoryIdx(int h)
h - indexprotected Component doMakeMainButtonPanel()
public void processForm(String action,
String data)
action - action for formdata - form data.public void hyperlinkUpdate(