|
SGT Home | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--gov.noaa.pmel.sgt.PointCollectionKey
PointCollectionKey is used to create a key for the
PointCartesianRenderer. Multiple
lines can be included in the key.
| Field Summary | |
static int |
BOTTOM
Align to bottom of key. |
static int |
CENTER
Align to center of key. |
static int |
LEFT
Align to left of key. |
static int |
MIDDLE
Align to middle of key. |
static int |
NO_BORDER
Do not draw a border. |
static int |
PLAIN_LINE
Use plain line border. |
static int |
RAISED
Use raised border. |
static int |
RIGHT
Align to right of key. |
static int |
TOP
Align to top of key. |
| Constructor Summary | |
PointCollectionKey()
Default constructor. |
|
PointCollectionKey(Point2D.Double loc,
int valign,
int halign)
Create PointCollectionKey. |
|
| Method Summary | |
void |
addPointGraph(PointCartesianRenderer points,
SGLabel label)
Add a PointCartesianRenderer and label to the PointCollectionKey. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a new PropertyChangeListener. |
void |
clear(java.lang.String data_id)
Remove data from key by id. |
void |
clearAll()
Remove all lines from the PointCollectionKey. |
LayerChild |
copy()
Create of copy of PointCollectionKey. |
void |
draw(java.awt.Graphics g)
Draw the Key. |
int |
getBorderStyle()
Get border style. |
java.awt.Rectangle |
getBounds()
Get the bounding rectangle. |
Rectangle2D.Double |
getBoundsP()
|
int |
getColumns()
Get the number of columns. |
int |
getHAlign()
Get horizontal alignment |
java.lang.String |
getId()
Get PointCollectionKey identifier |
Layer |
getLayer()
Get layer. |
double |
getLineLengthP()
Get line length |
java.awt.Point |
getLocation()
Gets the location in device coordinates. |
Point2D.Double |
getLocationP()
Get location of key. |
AbstractPane |
getPane()
Get AbstractPane of the LayerChild. |
int |
getRowHeight()
Return height of key row in pixels. |
int |
getVAlign()
Get vertical alignment |
boolean |
isMoveable()
Returns true if the current state is moveable |
boolean |
isSelectable()
Returns true if the current state is selectable. |
boolean |
isSelected()
Returns true if the object's selected property is set. |
boolean |
isVisible()
Check if LayerChild is visible. |
void |
modified(java.lang.String mess)
Used by sgt internally. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
This method gets called when a bound property is changed. |
void |
removePointGraph(SGLabel label)
Remove a line from the PointCollectionKey. |
void |
removePointGraph(java.lang.String ident)
Remove a line from the PointCollectionKey. |
void |
removePointRenderer(PointCartesianRenderer line)
Remove a line from the PointCollectionKey. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a listener. |
void |
setAlign(int vert,
int horz)
Set alignment. |
void |
setBorderStyle(int style)
Set border style. |
void |
setBounds(int x,
int y,
int width,
int height)
Set the bounds, in pixels, of the PointCollectionKey
Property Change: location. |
void |
setBounds(java.awt.Rectangle r)
Set the bounds, in pixels, of the PointCollectionKey |
void |
setBoundsP(Rectangle2D.Double r)
Set the bounds, in physical units, of the PointCollectionKey |
void |
setColumns(int col)
Set the number of columns. |
void |
setHAlign(int horz)
Set horizontal alignment |
void |
setId(java.lang.String id)
Set PointCollectionKey identifier. |
void |
setLayer(Layer l)
Set parent layer. |
void |
setLineLengthP(double len)
Set line length. |
void |
setLocation(java.awt.Point loc)
Sets the location in device coordinates. |
void |
setLocationP(Point2D.Double loc)
Set location of key Property Change: location. |
void |
setMoveable(boolean moveable)
Set the moveable property. |
void |
setSelectable(boolean select)
Set the Selectable property. |
void |
setSelected(boolean sel)
Sets the selected property. |
void |
setVAlign(int vert)
Set vertical alignment |
void |
setVisible(boolean visible)
Set visibility for a LayerChild. |
java.lang.String |
toString()
Return a string that represents the LayerChild. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int PLAIN_LINE
public static final int RAISED
public static final int NO_BORDER
public static final int TOP
public static final int MIDDLE
public static final int BOTTOM
public static final int LEFT
public static final int CENTER
public static final int RIGHT
| Constructor Detail |
public PointCollectionKey()
public PointCollectionKey(Point2D.Double loc,
int valign,
int halign)
PointCollectionKey.| Method Detail |
public LayerChild copy()
copy in interface LayerChildgov.noaa.pmel.sgt.LayerChildLayerChild.public void setSelected(boolean sel)
SelectablesetSelected in interface Selectablegov.noaa.pmel.sgt.Selectablesel - true if selected, false if not.public boolean isSelected()
SelectableisSelected in interface Selectablegov.noaa.pmel.sgt.Selectablepublic void setSelectable(boolean select)
SelectablesetSelectable in interface Selectablegov.noaa.pmel.sgt.Selectableselect - if true object is selectablepublic boolean isSelectable()
SelectableisSelectable in interface Selectablegov.noaa.pmel.sgt.Selectablepublic boolean isMoveable()
MoveableisMoveable in interface Moveablegov.noaa.pmel.sgt.Moveablepublic void setMoveable(boolean moveable)
MoveablesetMoveable in interface Moveablegov.noaa.pmel.sgt.Moveableselect - if true object is moveablepublic void setLayer(Layer l)
setLayer in interface LayerChildl - parent layerpublic Layer getLayer()
getLayer in interface LayerChildpublic AbstractPane getPane()
LayerChildAbstractPane of the LayerChild.getPane in interface LayerChildpublic void modified(java.lang.String mess)
LayerChildmodified in interface LayerChildpublic void setId(java.lang.String id)
setId in interface LayerChildid - key identifierpublic java.lang.String getId()
getId in interface LayerChildpublic void setLineLengthP(double len)
len - line lengthpublic double getLineLengthP()
public void setColumns(int col)
col - number of columnspublic int getColumns()
public void setBorderStyle(int style)
style - border stylePLAIN_LINE,
RAISED,
NO_BORDERpublic int getBorderStyle()
public void setAlign(int vert,
int horz)
vert - vertical alignmenthorz - horizontal alignmentpublic void setVAlign(int vert)
vert - vertical alignmentpublic void setHAlign(int horz)
horz - horizontal alignmentpublic int getVAlign()
public int getHAlign()
public void setLocationP(Point2D.Double loc)
location.loc - key locationpublic void setBoundsP(Rectangle2D.Double r)
PointCollectionKeypublic Rectangle2D.Double getBoundsP()
public Point2D.Double getLocationP()
public void addPointGraph(PointCartesianRenderer points,
SGLabel label)
line - PointCartesianGraph objectlabel - descriptive labelpublic void removePointGraph(SGLabel label)
public void removePointRenderer(PointCartesianRenderer line)
public void removePointGraph(java.lang.String ident)
public void clearAll()
public void clear(java.lang.String data_id)
public int getRowHeight()
public void draw(java.awt.Graphics g)
draw in interface LayerChildgov.noaa.pmel.sgt.LayerChildg - Graphics contextLayerNotFoundException - No layer is associated with the LayerChild.public java.awt.Rectangle getBounds()
getBounds in interface Selectablepublic java.awt.Point getLocation()
MoveablegetLocation in interface Moveablegov.noaa.pmel.sgt.Moveablepublic void setLocation(java.awt.Point loc)
MoveablesetLocation in interface Moveablepublic void setBounds(java.awt.Rectangle r)
PointCollectionKey
public void setBounds(int x,
int y,
int width,
int height)
PointCollectionKey
location.public java.lang.String toString()
LayerChildLayerChild.toString in interface LayerChildtoString in class java.lang.Objectgov.noaa.pmel.sgt.LayerChildLayerChild representation.public boolean isVisible()
LayerChildLayerChild is visible.isVisible in interface LayerChildgov.noaa.pmel.sgt.LayerChildpublic void setVisible(boolean visible)
LayerChildLayerChild.setVisible in interface LayerChildgov.noaa.pmel.sgt.LayerChildvisible - visible if truepublic void propertyChange(java.beans.PropertyChangeEvent evt)
java.beans.PropertyChangeListenerpropertyChange in interface java.beans.PropertyChangeListenerjava.beans.PropertyChangeListenerevt - A PropertyChangeEvent object describing the event source
and the property that has changed.public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
MoveableaddPropertyChangeListener in interface Moveablepublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
MoveableremovePropertyChangeListener in interface Moveable
|
SGT Home | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||