|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--physicon.graphLib.GraphContainerBase
Represents the abstract container of the GraphElementBase elements
Constructor Summary | |
GraphContainerBase(GraphContextBase _context)
Constructor. |
Method Summary | |
void |
addElement(GraphElementInterface _element)
Adds the given object to the end of element array. |
void |
addScale(GraphElementInterface _element)
Adds the given object to the end of scale array. |
abstract boolean |
contains(DoublePoint _dpt)
Returns true if the point is in the container |
GraphElementBase |
elementAt(int _index)
Returns GraphElement at the given index. |
int |
elementsNumber()
Returns the number of elements in the elements array |
abstract java.awt.Component |
getComponent()
Must return the reference to the current component |
GraphContextBase |
getContext()
returns the reference to the GraphContextBase object |
int |
indexOfElement(GraphElementInterface _element)
Returns the index of the given GraphElementInterface in the elements array of the container. |
int |
indexOfScale(GraphElementInterface _element)
Returns the index of the given GraphElementInterface in the scales array of the container. |
void |
insertElementAt(GraphElementInterface _element,
int _index)
Adds the given object to given position of element array. |
void |
insertScaleAt(GraphElementInterface element,
int index)
Adds the given object to given position of scale array. |
void |
invalidateAll()
Sets redrawflag -> true to all elements and scales Do not forget call this method in case of overriding it. |
GraphElementInterface |
realElementAt(int _index)
Returns GraphElementInterface at the given index from the elements array. |
GraphElementInterface |
realScaleAt(int _index)
Returns GraphElementInterface at the given index from the scales array. |
void |
removeAllElements()
Removes all elements from the elements array |
void |
removeAllScales()
Removes all elements from the scales array |
void |
removeElement(GraphElementInterface element)
|
void |
removeElementAt(int _index)
Removes the element from the elements array at the given index |
void |
removeScale(GraphElementInterface element)
|
void |
removeScaleAt(int _index)
Removes the element from the scales array at the given index |
GraphScaleBase |
scaleAt(int _index)
Returns GraphElement at the given index. |
int |
scalesNumber()
Returns the number of elements in the scales array |
void |
showAllElements(boolean _b)
Shows or hides all the elements. |
void |
showAllScales(boolean _b)
Shows or hides all the scales. |
abstract void |
showElement(GraphElementInterface _element,
boolean _show)
Must show or hide given element. |
abstract void |
showScale(GraphElementInterface _element,
boolean _show)
Must show or hide given scale. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public GraphContainerBase(GraphContextBase _context)
_context
- - the GraphContextBase object for
current GraphContainerGraphContextBase
Method Detail |
public final void addElement(GraphElementInterface _element)
_element
- - given elementpublic final void insertElementAt(GraphElementInterface _element, int _index)
_element
- - given element_index
- - the given position of the elementpublic final void addScale(GraphElementInterface _element)
_element
- - given elementpublic final void insertScaleAt(GraphElementInterface element, int index)
_element
- - given element_index
- - the given position of the elementpublic abstract void showElement(GraphElementInterface _element, boolean _show)
_element
- - the given element_show
- - true is the element is to be shown
false if the element is to be hiddenpublic abstract void showScale(GraphElementInterface _element, boolean _show)
_element
- - the given scale_show
- - true is the scale is to be shown
false if the scale is to be hiddenpublic final GraphElementBase elementAt(int _index)
_index
- - the given indexGraphElementInterface
,
GraphElementBase
public final GraphScaleBase scaleAt(int _index)
_index
- - the given indexGraphElementInterface
,
GraphScaleBase
public final GraphElementInterface realElementAt(int _index)
_index
- - the given indexGraphElementInterface
,
GraphElementBase
public final GraphElementInterface realScaleAt(int _index)
_index
- - the given indexGraphElementInterface
,
GraphScaleBase
public final int indexOfElement(GraphElementInterface _element)
_element
- - the given elementpublic final int indexOfScale(GraphElementInterface _element)
_element
- - the given elementpublic void removeElementAt(int _index)
_index
- - the given indexpublic final void removeAllElements()
public void removeScaleAt(int _index)
_index
- - the given indexpublic void removeElement(GraphElementInterface element)
public void removeScale(GraphElementInterface element)
public final void removeAllScales()
public final int elementsNumber()
public void showAllElements(boolean _b)
_b.
- If _b is true then all
elements are to be shown. All elements
are to be hidden in other case.public void showAllScales(boolean _b)
_b.
- If _b is true then all
scales are to be shown. All scales
are to be hidden in other case.public final int scalesNumber()
public GraphContextBase getContext()
GraphContextBase
public void invalidateAll()
public abstract java.awt.Component getComponent()
public abstract boolean contains(DoublePoint _dpt)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |