public class CoordinateLayout extends Layout
Constructor and Description |
---|
CoordinateLayout()
Allows creating a coordinate layouts that disables the scaling feature
|
CoordinateLayout(Dimension d)
This constructor accepts the relative width and height used to define the
aspect ratio of the Container
|
CoordinateLayout(int width,
int height)
This constructor accepts the relative width and height used to define the
aspect ratio of the Container
|
Modifier and Type | Method and Description |
---|---|
Dimension |
getPreferredSize(Container parent)
Returns the container preferred size
|
boolean |
isOverlapSupported()
This method returns true if the Layout allows Components to
Overlap.
|
void |
layoutContainer(Container parent)
Layout the given parent container children
|
addLayoutComponent, equals, getComponentConstraint, hashCode, isConstraintTracking, obscuresPotential, removeLayoutComponent
public CoordinateLayout()
public CoordinateLayout(int width, int height)
width
- height
- public CoordinateLayout(Dimension d)
d
- the width/heightpublic void layoutContainer(Container parent)
Layout
layoutContainer
in class Layout
parent
- the given parent containerpublic Dimension getPreferredSize(Container parent)
Layout
getPreferredSize
in class Layout
parent
- the parent containerpublic boolean isOverlapSupported()
Layout
isOverlapSupported
in class Layout