public class InfoPanelController extends AbstractFeature implements SelectListener
Modifier and Type | Field and Description |
---|---|
protected AnnotationLayer |
annotationLayer |
protected ScreenAnnotation |
annotationPanel |
protected static java.lang.String |
HARD_SPACE |
protected static java.lang.String |
INDENT |
protected AVList |
lastSelectedObject |
protected int |
maxLineLength |
controller, featureID
Constructor and Description |
---|
InfoPanelController(Registry registry) |
Modifier and Type | Method and Description |
---|---|
protected java.awt.Dimension |
computeLengths(java.lang.String annoText)
Determine the number of lines in the annotation text and the length of the longest line.
|
protected java.awt.Dimension |
computePanelSize(java.lang.String annoText)
Determine the panel size needed to display the full annotation.
|
protected AnnotationAttributes |
getAnnotationPanelAttributes(java.lang.String annoText) |
protected void |
hideAnnotationPanel() |
void |
initialize(Controller controller) |
void |
selected(SelectEvent event) |
protected void |
showAnnotationPanel(java.lang.String annoText) |
protected java.lang.String |
splitLine(java.lang.String origLine)
Split a long line into several lines.
|
protected java.lang.String |
splitLines(java.lang.String origText)
Split a collection of lines into a new collection whose lines are all less than the maximum allowed line length.
|
actionPerformed, addToToolBar, doActionPerformed, doPropertyChange, getController, getFeatureID, getName, getStringValue, isInitialized, isOn, isTwoState, propertyChange, register, setMenuAccellerator, turnOn
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
protected AnnotationLayer annotationLayer
protected ScreenAnnotation annotationPanel
protected static final java.lang.String HARD_SPACE
protected static final java.lang.String INDENT
protected AVList lastSelectedObject
protected int maxLineLength
public InfoPanelController(Registry registry)
protected java.awt.Dimension computeLengths(java.lang.String annoText)
annoText
- the annotation text.protected java.awt.Dimension computePanelSize(java.lang.String annoText)
annoText
- the annotation text.protected AnnotationAttributes getAnnotationPanelAttributes(java.lang.String annoText)
protected void hideAnnotationPanel()
public void initialize(Controller controller)
initialize
in interface Initializable
initialize
in class AbstractFeature
public void selected(SelectEvent event)
selected
in interface SelectListener
protected void showAnnotationPanel(java.lang.String annoText)
protected java.lang.String splitLine(java.lang.String origLine)
origLine
- the original lineprotected java.lang.String splitLines(java.lang.String origText)
origText
- the original lines.