|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectComponent
Container
JComponent
JPanel
AbstractMap2D
public abstract class AbstractMap2D
Default implementation of Map2D
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected AbstractMap2D |
THIS_MAP
Map2D reference , same as "this" but needed to explicitly point to the map2d object when coding a private class |
| Fields inherited from class JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
AbstractMap2D()
create a default JDefaultMap2D |
|
| Method Summary | |
|---|---|
void |
addDecoration(int index,
MapDecoration deco)
insert a MapDecoration at a specific index |
void |
addDecoration(MapDecoration deco)
add a Decoration between the map and the information top decoration |
protected void |
addMapDecoration(MapDecoration deco)
add a MapDecoration between the map and the user MapDecoration those MapDecoration can not be removed because they are important for edition/selection/navigation. |
MapDecoration |
getBackgroundDecoration()
get the decoration behind the map |
Component |
getComponent()
get the visual component |
int |
getDecorationIndex(MapDecoration deco)
get the index of a MapDecoration |
MapDecoration[] |
getDecorations()
get an array of all MapDecoration |
InformationDecoration |
getInformationDecoration()
get the top InformationDecoration of the map2d widget |
void |
removeDecoration(MapDecoration deco)
remove a MapDecoration |
void |
setBackgroundDecoration(MapDecoration back)
set the decoration behind the map |
void |
setInformationDecoration(InformationDecoration info)
set the top InformationDecoration of the map2d widget |
protected void |
setMapComponent(Component comp)
|
protected void |
setRendering(boolean render)
|
| Methods inherited from class JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface Map2D |
|---|
dispose |
| Field Detail |
|---|
protected final AbstractMap2D THIS_MAP
| Constructor Detail |
|---|
public AbstractMap2D()
| Method Detail |
|---|
protected void setMapComponent(Component comp)
protected void setRendering(boolean render)
public void setInformationDecoration(InformationDecoration info)
Map2D
setInformationDecoration in interface Map2Dinfo - , can't be nullpublic InformationDecoration getInformationDecoration()
Map2D
getInformationDecoration in interface Map2Dpublic void setBackgroundDecoration(MapDecoration back)
Map2D
setBackgroundDecoration in interface Map2Dback - : MapDecoration, can't be nullpublic MapDecoration getBackgroundDecoration()
Map2D
getBackgroundDecoration in interface Map2Dpublic void addDecoration(MapDecoration deco)
Map2D
addDecoration in interface Map2Ddeco - : MapDecoration to add
public void addDecoration(int index,
MapDecoration deco)
Map2D
addDecoration in interface Map2Dindex - : index where to isert the decorationdeco - : MapDecoration to addpublic int getDecorationIndex(MapDecoration deco)
Map2D
getDecorationIndex in interface Map2Ddeco - : MapDecoration to find
public void removeDecoration(MapDecoration deco)
Map2D
removeDecoration in interface Map2Ddeco - : MapDecoration to removepublic MapDecoration[] getDecorations()
Map2D
getDecorations in interface Map2Dprotected void addMapDecoration(MapDecoration deco)
deco - : MapDecoration to addpublic Component getComponent()
Map2D
getComponent in interface Map2D
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||