|
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.Logo
Logo displays an Image on its parent Layer. Logo implements the LayerChild interface.
LayerChild
Field Summary | |
static int |
BOTTOM
Align to bottom of Logo. |
static int |
CENTER
Align to center of Logo. |
static int |
LEFT
Align to left of Logo. |
static int |
MIDDLE
Align to middle of Logo. |
static int |
RIGHT
Align to right of Logo. |
static int |
TOP
Align to top of Logo. |
Constructor Summary | |
Logo()
Default constructor. |
|
Logo(Point2D.Double loc,
int valign,
int halign)
Create a Logo object. |
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a new PropertyChangeListener. |
LayerChild |
copy()
Create of copy of Logo. |
void |
draw(java.awt.Graphics g)
Draw the Logo. |
java.awt.Rectangle |
getBounds()
Get the bounding rectangle. |
int |
getHAlign()
Get horizontal alignment |
java.lang.String |
getId()
Get Logo identifier |
java.net.URL |
getImageURL()
Get the image URL. |
Layer |
getLayer()
Get layer. |
java.awt.Point |
getLocation()
Gets the location in device coordinates. |
Point2D.Double |
getLocationP()
Get location of logo. |
AbstractPane |
getPane()
Get AbstractPane of the LayerChild . |
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 |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a listener. |
void |
setAlign(int vert,
int horz)
Set alignment. |
void |
setBounds(int x,
int y,
int width,
int height)
Set the bounds of the Logo
Property Change: location . |
void |
setBounds(java.awt.Rectangle r)
Set the bounds of the Logo |
void |
setHAlign(int horz)
Set horizontal alignment |
void |
setId(java.lang.String id)
Set Logo identifier. |
void |
setImage(java.awt.Image img)
Set the Logo image. |
void |
setImageURL(java.net.URL url)
Set the URL for the Logo image. |
void |
setLayer(Layer l)
Set parent layer. |
void |
setLocation(java.awt.Point loc)
Sets the location in device coordinates. |
void |
setLocationP(Point2D.Double loc)
Set location of logo 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 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 Logo()
public Logo(Point2D.Double loc, int valign, int halign)
loc
- Location of Logovalign
- vertical alignmenthalign
- horizontal alignmentsetImageURL(java.net.URL)
,
setImage(java.awt.Image)
,
Image
Method Detail |
public LayerChild copy()
copy
in interface LayerChild
gov.noaa.pmel.sgt.LayerChild
LayerChild
.public void setSelected(boolean sel)
Selectable
setSelected
in interface Selectable
gov.noaa.pmel.sgt.Selectable
sel
- true if selected, false if not.public boolean isSelected()
Selectable
isSelected
in interface Selectable
gov.noaa.pmel.sgt.Selectable
public void setSelectable(boolean select)
Selectable
setSelectable
in interface Selectable
gov.noaa.pmel.sgt.Selectable
select
- if true object is selectablepublic boolean isSelectable()
Selectable
isSelectable
in interface Selectable
gov.noaa.pmel.sgt.Selectable
public boolean isMoveable()
Moveable
isMoveable
in interface Moveable
gov.noaa.pmel.sgt.Moveable
public void setMoveable(boolean moveable)
Moveable
setMoveable
in interface Moveable
gov.noaa.pmel.sgt.Moveable
select
- if true object is moveablepublic void setImageURL(java.net.URL url)
url
- image URLsetImage(java.awt.Image)
public java.net.URL getImageURL()
public void setImage(java.awt.Image img)
img
- Logo imagesetImageURL(java.net.URL)
public void setLayer(Layer l)
setLayer
in interface LayerChild
l
- parent layerpublic Layer getLayer()
getLayer
in interface LayerChild
public AbstractPane getPane()
LayerChild
AbstractPane
of the LayerChild
.getPane
in interface LayerChild
public void modified(java.lang.String mess)
LayerChild
modified
in interface LayerChild
public void setId(java.lang.String id)
setId
in interface LayerChild
id
- logo identifierpublic java.lang.String getId()
getId
in interface LayerChild
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
- logo locationpublic Point2D.Double getLocationP()
public void draw(java.awt.Graphics g)
draw
in interface LayerChild
gov.noaa.pmel.sgt.LayerChild
g
- Graphics contextLayerNotFoundException
- No layer is associated with the LayerChild
.public java.awt.Rectangle getBounds()
getBounds
in interface Selectable
public java.awt.Point getLocation()
Moveable
getLocation
in interface Moveable
gov.noaa.pmel.sgt.Moveable
public void setLocation(java.awt.Point loc)
Moveable
setLocation
in interface Moveable
public void setBounds(java.awt.Rectangle r)
Logo
public void setBounds(int x, int y, int width, int height)
Logo
location
.public java.lang.String toString()
LayerChild
LayerChild
.toString
in interface LayerChild
toString
in class java.lang.Object
gov.noaa.pmel.sgt.LayerChild
LayerChild
representation.public boolean isVisible()
LayerChild
LayerChild
is visible.isVisible
in interface LayerChild
gov.noaa.pmel.sgt.LayerChild
public void setVisible(boolean visible)
LayerChild
LayerChild
.setVisible
in interface LayerChild
gov.noaa.pmel.sgt.LayerChild
visible
- visible if truepublic void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Moveable
addPropertyChangeListener
in interface Moveable
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Moveable
removePropertyChangeListener
in interface Moveable
|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |