OME
Interface ViewElement
- public interface ViewElement
- extends OMEElement, ViewObject
This interface describes the methods that need to be implemented, when
an element is to be represented in a view. These methods perform such
operations as contracting or expanding an elements. An element in OME can
be expanded and contracted (to show or hide their children respectively).
Method Summary |
void |
contract()
Contracts the element. |
void |
expand()
Expands the element. |
boolean |
isExpanded()
Returns true iff the element is expanded in the view. |
boolean |
isHidden()
Moves the element to a given point in the view. |
void |
move(int dx,
int dy)
Moves the element to a position in the view relative to its current
position. |
void |
moveTo(java.awt.Point p)
|
expand
public void expand()
throws java.lang.Exception
- Expands the element. Throws exception if element is not expandable.
contract
public void contract()
throws java.lang.Exception
- Contracts the element.
isExpanded
public boolean isExpanded()
- Returns true iff the element is expanded in the view.
isHidden
public boolean isHidden()
- Moves the element to a given point in the view. (Olny makes sensein a
Graphic View).
- Specified by:
- isHidden in interface ViewObject
moveTo
public void moveTo(java.awt.Point p)
move
public void move(int dx,
int dy)
- Moves the element to a position in the view relative to its current
position. (Only makes sense in a Graphic View)