|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.jidesoft.swing.DefaultOverlayable
public class DefaultOverlayable
DefaultOverlayable is the default implementation of Overlayable using JPanel as the base
component.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.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 java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface com.jidesoft.swing.Overlayable |
|---|
CLIENT_PROPERTY_OVERLAYABLE |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DefaultOverlayable()
|
|
DefaultOverlayable(JComponent component)
|
|
DefaultOverlayable(JComponent actualComponent,
JComponent overlayComponent)
|
|
DefaultOverlayable(JComponent actualComponent,
JComponent overlayComponent,
int overlayLocation)
|
|
| Method Summary | |
|---|---|
void |
addOverlayComponent(JComponent component)
Adds an overlay component to the center. |
void |
addOverlayComponent(JComponent component,
int location)
Adds an overlay component at the specified location. |
void |
addOverlayComponent(JComponent component,
int location,
int index)
Adds an overlay component at the specified location. |
void |
componentHidden(ComponentEvent e)
|
void |
componentMoved(ComponentEvent e)
|
void |
componentResized(ComponentEvent e)
|
void |
componentShown(ComponentEvent e)
|
JComponent |
getActualComponent()
|
Dimension |
getMinimumSize()
|
protected Rectangle |
getOverlayComponentBounds(JComponent component)
Gets the bounds of an overlay component. |
JComponent[] |
getOverlayComponents()
Gets the overlay component. |
int |
getOverlayLocation(JComponent component)
Gets the overlay component location. |
Insets |
getOverlayLocationInsets()
Gets the insets of the overlay component relative to the border of the component. |
Dimension |
getPreferredSize()
Override to consider the overlayLocationInsets. |
void |
removeOverlayComponent(JComponent component)
Removes an overlay component that was added before. |
void |
setActualComponent(JComponent actualComponent)
|
void |
setBounds(int x,
int y,
int width,
int height)
|
void |
setMinimumSize(Dimension minimumSize)
|
void |
setOverlayLocation(JComponent component,
int location)
Sets the overlay component location. |
void |
setOverlayLocationInsets(Insets overlayLocationInsets)
Sets the insets of the overlay component relative to the border of the component. |
void |
setOverlayVisible(boolean visible)
Sets all the overlay components visible or invisible. |
void |
setPreferredSize(Dimension preferredSize)
|
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultOverlayable()
public DefaultOverlayable(JComponent component)
public DefaultOverlayable(JComponent actualComponent,
JComponent overlayComponent,
int overlayLocation)
public DefaultOverlayable(JComponent actualComponent,
JComponent overlayComponent)
| Method Detail |
|---|
public Dimension getPreferredSize()
getPreferredSize in class JComponentpublic void setPreferredSize(Dimension preferredSize)
setPreferredSize in class JComponentpublic Dimension getMinimumSize()
getMinimumSize in class JComponentpublic void setMinimumSize(Dimension minimumSize)
setMinimumSize in class JComponent
public void setBounds(int x,
int y,
int width,
int height)
setBounds in class Componentprotected Rectangle getOverlayComponentBounds(JComponent component)
component - an overlay component
public int getOverlayLocation(JComponent component)
Overlayable
getOverlayLocation in interface Overlayable
public void setOverlayLocation(JComponent component,
int location)
OverlayableSwingConstants.CENTER SwingConstants.SOUTH SwingConstants.NORTH SwingConstants.WEST SwingConstants.EAST SwingConstants.NORTH_EAST SwingConstants.NORTH_WEST SwingConstants.SOUTH_EAST SwingConstants.SOUTH_WEST
setOverlayLocation in interface Overlayablelocation - the overlay component location.public void addOverlayComponent(JComponent component)
Overlayable
addOverlayComponent in interface Overlayablecomponent - the overlay component.
public void addOverlayComponent(JComponent component,
int location)
OverlayableSwingConstants.CENTER SwingConstants.SOUTH SwingConstants.NORTH SwingConstants.WEST SwingConstants.EAST SwingConstants.NORTH_EAST SwingConstants.NORTH_WEST SwingConstants.SOUTH_EAST SwingConstants.SOUTH_WEST
addOverlayComponent in interface Overlayablecomponent - the overlay component.location - the overlay location.
public void addOverlayComponent(JComponent component,
int location,
int index)
OverlayableSwingConstants.CENTER SwingConstants.SOUTH SwingConstants.NORTH SwingConstants.WEST SwingConstants.EAST SwingConstants.NORTH_EAST SwingConstants.NORTH_WEST SwingConstants.SOUTH_EAST SwingConstants.SOUTH_WEST
addOverlayComponent in interface Overlayablecomponent - the overlay component.location - the overlay location.index - the overlay index. 0 means the first overlay component. -1 means the last overlay component.public void removeOverlayComponent(JComponent component)
Overlayable
removeOverlayComponent in interface Overlayablepublic JComponent[] getOverlayComponents()
Overlayable
getOverlayComponents in interface Overlayablepublic JComponent getActualComponent()
public void setActualComponent(JComponent actualComponent)
public Insets getOverlayLocationInsets()
Overlayable
getOverlayLocationInsets in interface Overlayablepublic void setOverlayLocationInsets(Insets overlayLocationInsets)
Overlayable
setOverlayLocationInsets in interface OverlayableoverlayLocationInsets - the insets of the overlay component relative to the border of the component.public void setOverlayVisible(boolean visible)
Overlayable
setOverlayVisible in interface Overlayablevisible - true to set it visible. False to invisible.public void componentResized(ComponentEvent e)
componentResized in interface ComponentListenerpublic void componentMoved(ComponentEvent e)
componentMoved in interface ComponentListenerpublic void componentShown(ComponentEvent e)
componentShown in interface ComponentListenerpublic void componentHidden(ComponentEvent e)
componentHidden in interface ComponentListener
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||