John W. Campbell
This class provides a blank (infill) JdlView based window. This is basically
just an empty area but it will be framed and coloured consistently with
the other JdlView objects in a JdlView object based layout.
Class, fields, constructor and methods:
Class Details
Accessible Fields
Constructor
Standard Positioning and Sizing
Overriden Superclass Methods
- Package:
- Jdl.JdlView;
- Class name:
- JdlBlankObject
- Class definition:
- public class JdlBlankObject
- Extends:
- JPanel
- Implements:
- JdlViewObject
- Actions:
- none
The following accessible fields have been defined:
- public final static int PREFERRED
- Size Constraint: preferred size.
- public final static int FREE
- Location Constraint: free
- static final long serialVersionUID
A single constructor is available.
Constructor:
Standard constructor
Constructs a JdlBlankObject with the initial required size.
- Constructor Definition:
- public JdlBlankObject(int w, int h, JdlViewOptions view_opts)
- Parameters List:
- w
- Width required in pixels.
- h
- Height required in pixels.
- view_opts
- Object to set non-default options for borders, active strip,
colours and fonts.
This section contains the standard methods for positioning JdlView objects
and setting and getting the current minimum height and width values.
Methods:
Set position constraints - setLocationConstraints
Set size constraints - setSizeConstraints
Set minimum height - setMinimumHeight
Get minimum height - getMinimumHeight
Set minimum width - setMinimumWidth
Get minimum width - getMinimumWidth
Set constraints on the Jdl object positioning.
- Method Definition:
- public void setLocationConstraints (int constraint_x, int constraint_y)
- Parameters List:
- constraint_x
- Constrain the Jdl Object 'x' position = the required
Jdl Object 'x' position (overrides setLocation method) or FREE if the 'x'
position may be set by the setLocation method and hence possibly by the
layout manager.
- constraint_y
- Constrain the Jdl Object 'y' position = the required
the Jdl Object 'y'position (overrides setLocation method) or FREE if the 'y'
position may be set by the setLocation method and hence possibly by the
layout manager.
Set constraints on the Jdl Object resizing permitted.
- Method Definition:
- public void setSizeConstraints (int constraint_w, int constraint_h)
- Parameters List:
- constraint_w
- Constrain the Jdl Object width = the required
Jdl Object width, or PREFERRED (default) if the width is to be calculated
from the current resources, or FREE if the width may be resized to anything
greater than the minimum width required.
- constraint_h
- Constrain the Jdl Object height = the required
Jdl Object height, or PREFERRED (default) if the height is to be calculated
from the current resources, or FREE if the height may be resized to anything
greater than the minimum height required.
Set the minimum height resource.
- Method Definition:
- public void setMinimumHeight(int minh)
- Parameters List:
- minh
- The minimum height required for the object (ignored if less
than that required by the minimum layout) (default = 0).
Get the minimum height resource.
- Method Definition:
- public int getMinimumHeight()
- Parameters List:
- none
- Method Return:
-
Returns the value of the minimum height resource.
Set the minimum width resource.
- Method Definition:
- public void setMinimumWidth(int minw)
- Parameters List:
- minh
- The minimum width required for the object (ignored if less
than that required by the minimum layout) (default = 0).
Get the minimum width resource.
- Method Definition:
- public int getMinimumWidth()
- Parameters List:
- none
- Method Return:
-
Returns the value of the minimum width resource.
This section contains methods which override the corresponding superclass
methods. These are basically standard for JdlView objects and comprise
methods to set background and foreground colours and to get the minimum
and preferred sizes for the object. (The paintComponent method is also
over-ridden but is not normally called by the user).
Methods:
Set background - setBackground
Set foreground - setForeground
Get minimum size - getMinimumSize
Get preferred size - getPreferredSize
This method sets the background colour resource.
- Method Definition:
- public void setBackground (Color c)
- Parameters List:
- c
- The color to become this object's background color.
This method sets the foreground colour resource.
- Method Definition:
- public void setForeground (Color c)
- Parameters List:
- c
- The color to become this object's foreground color.
This method returns the minimum size of the component.
- Method Definition:
- public Dimension getMinimumSize()
- Parameters List:
- none
This method returns the preferred size of the component.
- Method Definition:
- public Dimension getPreferredSize()
- Parameters List:
- none
⇑ Up 3
⇑ Up 2
⇑ Up 1
⇑ Top of this