| java.awt.Container java.awt.Panel net.xoetrope.awt.XPanel
All known Subclasses: net.xoetrope.samples.travel.XMapViewer, net.xoetrope.awt.XTabPanel,
XPanel | public class XPanel extends Panel implements XAttributedComponent(Code) | | A basic container for components. The panel can optional draw a
border. By default no frame is displayed.
Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt
version: $Revision: 1.8 $ |
Constructor Summary | |
public | XPanel() | public | XPanel(boolean heavyWeight) |
Method Summary | |
public void | addNotify() | public int | getDrawFrame() Get the frame display value. | public void | paint(Graphics g) | public void | setAttribute(String attribName, String attribValue) Set one or more attributes of the component. | public void | setBounds(int x, int y, int w, int h) Set the panel size and location and then force it to redo its layout. | public void | setDrawFrame(int value) Toggle the frame display. |
BORDER_BEVEL | public static int BORDER_BEVEL(Code) | | |
BORDER_FLAT | public static int BORDER_FLAT(Code) | | |
BORDER_NONE | public static int BORDER_NONE(Code) | | |
XPanel | public XPanel()(Code) | | Constructs a new panel with a null layout
|
XPanel | public XPanel(boolean heavyWeight)(Code) | | |
addNotify | public void addNotify()(Code) | | Repaint the component once it has been created
|
getDrawFrame | public int getDrawFrame()(Code) | | Get the frame display value.
val 0 for no frame, 1 for a bevel, 2 for a flat frame |
paint | public void paint(Graphics g)(Code) | | Paint the panel
Parameters: g - |
setAttribute | public void setAttribute(String attribName, String attribValue)(Code) | | Set one or more attributes of the component.
- border, value=(0|1)
Parameters: attribName - the attribute name Parameters: attribValue - the attribute value |
setBounds | public void setBounds(int x, int y, int w, int h)(Code) | | Set the panel size and location and then force it to redo its layout.
Parameters: x - the left coordinate Parameters: y - the top coordinate Parameters: w - the width Parameters: h - the height |
setDrawFrame | public void setDrawFrame(int value)(Code) | | Toggle the frame display.
Parameters: val - 0 for no frame, 1 for a bevel, 2 for a flat frame |
Methods inherited from java.awt.Container | public Component add(Component comp)(Code)(Java Doc) public Component add(String name, Component comp)(Code)(Java Doc) public Component add(Component comp, int index)(Code)(Java Doc) public void add(Component comp, Object constraints)(Code)(Java Doc) public void add(Component comp, Object constraints, int index)(Code)(Java Doc) public synchronized void addContainerListener(ContainerListener l)(Code)(Java Doc) protected void addImpl(Component comp, Object constraints, int index)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) public void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc) public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc) public void applyComponentOrientation(ComponentOrientation o)(Code)(Java Doc) public boolean areFocusTraversalKeysSet(int id)(Code)(Java Doc) public int countComponents()(Code)(Java Doc) public void deliverEvent(Event e)(Code)(Java Doc) public void doLayout()(Code)(Java Doc) public Component findComponentAt(int x, int y)(Code)(Java Doc) public Component findComponentAt(Point p)(Code)(Java Doc) public float getAlignmentX()(Code)(Java Doc) public float getAlignmentY()(Code)(Java Doc) public Component getComponent(int n)(Code)(Java Doc) public Component getComponentAt(int x, int y)(Code)(Java Doc) public Component getComponentAt(Point p)(Code)(Java Doc) public int getComponentCount()(Code)(Java Doc) public int getComponentZOrder(Component comp)(Code)(Java Doc) public Component[] getComponents()(Code)(Java Doc) public synchronized ContainerListener[] getContainerListeners()(Code)(Java Doc) public Set<AWTKeyStroke> getFocusTraversalKeys(int id)(Code)(Java Doc) public FocusTraversalPolicy getFocusTraversalPolicy()(Code)(Java Doc) public Insets getInsets()(Code)(Java Doc) public LayoutManager getLayout()(Code)(Java Doc) public T[] getListeners(Class<T> listenerType)(Code)(Java Doc) public Dimension getMaximumSize()(Code)(Java Doc) public Dimension getMinimumSize()(Code)(Java Doc) public Point getMousePosition(boolean allowChildren) throws HeadlessException(Code)(Java Doc) public Dimension getPreferredSize()(Code)(Java Doc) public Insets insets()(Code)(Java Doc) public void invalidate()(Code)(Java Doc) public boolean isAncestorOf(Component c)(Code)(Java Doc) public boolean isFocusCycleRoot(Container container)(Code)(Java Doc) public boolean isFocusCycleRoot()(Code)(Java Doc) final public boolean isFocusTraversalPolicyProvider()(Code)(Java Doc) public boolean isFocusTraversalPolicySet()(Code)(Java Doc) public void layout()(Code)(Java Doc) public void list(PrintStream out, int indent)(Code)(Java Doc) public void list(PrintWriter out, int indent)(Code)(Java Doc) public Component locate(int x, int y)(Code)(Java Doc) public Dimension minimumSize()(Code)(Java Doc) public void paint(Graphics g)(Code)(Java Doc) public void paintComponents(Graphics g)(Code)(Java Doc) protected String paramString()(Code)(Java Doc) public Dimension preferredSize()(Code)(Java Doc) public void print(Graphics g)(Code)(Java Doc) public void printComponents(Graphics g)(Code)(Java Doc) protected void processContainerEvent(ContainerEvent e)(Code)(Java Doc) protected void processEvent(AWTEvent e)(Code)(Java Doc) public void remove(int index)(Code)(Java Doc) public void remove(Component comp)(Code)(Java Doc) public void removeAll()(Code)(Java Doc) public synchronized void removeContainerListener(ContainerListener l)(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) public void setComponentZOrder(Component comp, int index)(Code)(Java Doc) public void setFocusCycleRoot(boolean focusCycleRoot)(Code)(Java Doc) public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code)(Java Doc) public void setFocusTraversalPolicy(FocusTraversalPolicy policy)(Code)(Java Doc) final public void setFocusTraversalPolicyProvider(boolean provider)(Code)(Java Doc) public void setFont(Font f)(Code)(Java Doc) public void setLayout(LayoutManager mgr)(Code)(Java Doc) public void transferFocusDownCycle()(Code)(Java Doc) public void update(Graphics g)(Code)(Java Doc) public void validate()(Code)(Java Doc) protected void validateTree()(Code)(Java Doc)
|
|
|