public class GLLayoutPainter extends GLSimpleListenerAbstract implements net.miginfocom.layout.ComponentWrapper, net.miginfocom.layout.ContainerWrapper
GLSimpleListenerAbstract.GLSimpleListenerBridge
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT |
static int |
DEFAULT_HEIGHT |
static int |
DEFAULT_WIDTH |
ReentrantLock |
lock |
TYPE_BUTTON, TYPE_CHECK_BOX, TYPE_COMBO_BOX, TYPE_CONTAINER, TYPE_IMAGE, TYPE_LABEL, TYPE_LIST, TYPE_PANEL, TYPE_PROGRESS_BAR, TYPE_SCROLL_BAR, TYPE_SCROLL_PANE, TYPE_SEPARATOR, TYPE_SLIDER, TYPE_SPINNER, TYPE_TABLE, TYPE_TEXT_AREA, TYPE_TEXT_FIELD, TYPE_TREE, TYPE_UNKNOWN, TYPE_UNSET
Constructor and Description |
---|
GLLayoutPainter() |
GLLayoutPainter(GLLayoutPainter parent) |
Modifier and Type | Method and Description |
---|---|
void |
addLayoutPainter(GLLayoutPainter layout) |
void |
addLayoutPainter(GLLayoutPainter layout,
GLDisplayCallback c) |
void |
addLayoutUpdateListener(GLLayoutUpdateListener listener) |
void |
addSimpleListener(GLSimpleListener listener) |
void |
addSimpleListener(GLSimpleListener listener,
GLDisplayCallback c) |
void |
display(javax.media.opengl.GLContext context) |
void |
displayChanged(javax.media.opengl.GLContext context,
boolean modeChanged,
boolean deviceChanged) |
void |
dispose(javax.media.opengl.GLContext context)
Free GPU and CPU memory associated with this this context.
|
int |
getBaseline(int width,
int height) |
Rectangle |
getBounds() |
GLLayoutPainter |
getComponent() |
int |
getComponentCount() |
net.miginfocom.layout.ComponentWrapper[] |
getComponents() |
int |
getComponetType(boolean disregardScrollPane) |
int |
getHeight() |
int |
getHorizontalScreenDPI() |
GLLayoutManger |
getLayout() |
Object |
getLayoutData() |
int |
getLayoutHashCode() |
String |
getLinkId() |
int |
getMaximumHeight(int wHint) |
int |
getMaximumWidth(int hHint) |
int |
getMinimumHeight(int wHint) |
int |
getMinimumWidth(int hHint) |
String |
getName() |
GLLayoutPainter |
getParent() |
float |
getPixelUnitFactor(boolean isHor) |
int |
getPreferredHeight(int wHint) |
int |
getPreferredWidth(int hHint) |
int |
getScreenHeight() |
int |
getScreenLocationX() |
int |
getScreenLocationY() |
int |
getScreenWidth() |
int |
getVerticalScreenDPI() |
int[] |
getVisualPadding() |
int |
getWidth() |
int |
getX() |
int |
getY() |
boolean |
hasBaseline() |
void |
init(javax.media.opengl.GLContext context) |
void |
invalidate()
Marks the layout as needing to be recalculated after user changes.
|
void |
invalidateLayout() |
boolean |
isHovered() |
boolean |
isLeftToRight() |
boolean |
isPadded() |
boolean |
isVisible() |
void |
paintDebugCell(int x,
int y,
int width,
int height) |
void |
paintDebugOutline() |
void |
removeLayoutPainter(GLLayoutPainter layout) |
void |
removeSimpleListener(GLSimpleListener layout) |
void |
reshape(javax.media.opengl.GLContext context,
int x,
int y,
int width,
int height) |
void |
setBounds(int x,
int y,
int width,
int height) |
void |
setHovered(boolean value) |
void |
setLayout(GLLayoutManger manager) |
void |
setLayoutData(Object layoutData) |
void |
setName(String name) |
void |
setPadding(boolean v) |
asJoglListener, getInfo, isDisposed
public ReentrantLock lock
public static final int DEFAULT
public static final int DEFAULT_WIDTH
public static final int DEFAULT_HEIGHT
public GLLayoutPainter(GLLayoutPainter parent)
public GLLayoutPainter()
public void addLayoutUpdateListener(GLLayoutUpdateListener listener)
public void removeLayoutPainter(GLLayoutPainter layout)
public void removeSimpleListener(GLSimpleListener layout)
public void addLayoutPainter(GLLayoutPainter layout)
public void addLayoutPainter(GLLayoutPainter layout, GLDisplayCallback c)
public void addSimpleListener(GLSimpleListener listener)
public void addSimpleListener(GLSimpleListener listener, GLDisplayCallback c)
public void dispose(javax.media.opengl.GLContext context)
GLSimpleListener
dispose
in interface GLSimpleListener
dispose
in class GLSimpleListenerAbstract
public void init(javax.media.opengl.GLContext context)
init
in interface GLSimpleListener
public void display(javax.media.opengl.GLContext context)
display
in interface GLSimpleListener
public void reshape(javax.media.opengl.GLContext context, int x, int y, int width, int height)
reshape
in interface GLSimpleListener
public void setBounds(int x, int y, int width, int height)
setBounds
in interface net.miginfocom.layout.ComponentWrapper
public void displayChanged(javax.media.opengl.GLContext context, boolean modeChanged, boolean deviceChanged)
displayChanged
in interface GLSimpleListener
public void invalidate()
public void invalidateLayout()
public Rectangle getBounds()
public String getName()
public void setName(String name)
public void setHovered(boolean value)
public boolean isHovered()
public Object getLayoutData()
public void setLayout(GLLayoutManger manager)
public void setLayoutData(Object layoutData)
public GLLayoutPainter getComponent()
getComponent
in interface net.miginfocom.layout.ComponentWrapper
public int getX()
getX
in interface net.miginfocom.layout.ComponentWrapper
public int getY()
getY
in interface net.miginfocom.layout.ComponentWrapper
public int getWidth()
getWidth
in interface net.miginfocom.layout.ComponentWrapper
public int getHeight()
getHeight
in interface net.miginfocom.layout.ComponentWrapper
public int getMinimumWidth(int hHint)
getMinimumWidth
in interface net.miginfocom.layout.ComponentWrapper
public int getMinimumHeight(int wHint)
getMinimumHeight
in interface net.miginfocom.layout.ComponentWrapper
public int getPreferredWidth(int hHint)
getPreferredWidth
in interface net.miginfocom.layout.ComponentWrapper
public int getPreferredHeight(int wHint)
getPreferredHeight
in interface net.miginfocom.layout.ComponentWrapper
public int getMaximumWidth(int hHint)
getMaximumWidth
in interface net.miginfocom.layout.ComponentWrapper
public int getMaximumHeight(int wHint)
getMaximumHeight
in interface net.miginfocom.layout.ComponentWrapper
public boolean isVisible()
isVisible
in interface net.miginfocom.layout.ComponentWrapper
public int getBaseline(int width, int height)
getBaseline
in interface net.miginfocom.layout.ComponentWrapper
public boolean hasBaseline()
hasBaseline
in interface net.miginfocom.layout.ComponentWrapper
public GLLayoutPainter getParent()
getParent
in interface net.miginfocom.layout.ComponentWrapper
public String getLinkId()
getLinkId
in interface net.miginfocom.layout.ComponentWrapper
public int getLayoutHashCode()
getLayoutHashCode
in interface net.miginfocom.layout.ComponentWrapper
public boolean isPadded()
public void setPadding(boolean v)
public int[] getVisualPadding()
getVisualPadding
in interface net.miginfocom.layout.ComponentWrapper
public int getComponetType(boolean disregardScrollPane)
getComponetType
in interface net.miginfocom.layout.ComponentWrapper
public void paintDebugOutline()
paintDebugOutline
in interface net.miginfocom.layout.ComponentWrapper
public float getPixelUnitFactor(boolean isHor)
getPixelUnitFactor
in interface net.miginfocom.layout.ComponentWrapper
public int getHorizontalScreenDPI()
getHorizontalScreenDPI
in interface net.miginfocom.layout.ComponentWrapper
public int getVerticalScreenDPI()
getVerticalScreenDPI
in interface net.miginfocom.layout.ComponentWrapper
public int getScreenWidth()
getScreenWidth
in interface net.miginfocom.layout.ComponentWrapper
public int getScreenHeight()
getScreenHeight
in interface net.miginfocom.layout.ComponentWrapper
public int getScreenLocationX()
getScreenLocationX
in interface net.miginfocom.layout.ComponentWrapper
public int getScreenLocationY()
getScreenLocationY
in interface net.miginfocom.layout.ComponentWrapper
public net.miginfocom.layout.ComponentWrapper[] getComponents()
getComponents
in interface net.miginfocom.layout.ContainerWrapper
public int getComponentCount()
getComponentCount
in interface net.miginfocom.layout.ContainerWrapper
public GLLayoutManger getLayout()
getLayout
in interface net.miginfocom.layout.ContainerWrapper
public boolean isLeftToRight()
isLeftToRight
in interface net.miginfocom.layout.ContainerWrapper
public void paintDebugCell(int x, int y, int width, int height)
paintDebugCell
in interface net.miginfocom.layout.ContainerWrapper
Copyright © 2013 Metron, Inc.. All rights reserved.