: Download: FAQ: Licensing: Support: Contact ME
LwVCL Home
Introduction
Overview
Screen Shots
On-line Demos
Requirements
Further Plans
Docs
Tutorial
How-to (PDF)
API
FAQ
Download
Latest version

Home > J2SE > API

Overview  Package   Class  Tree  Deprecated  Index  Help 

org.zaval.lw
Class LwLine

java.lang.Object
  |
  +--org.zaval.lw.LwCanvas
        |
        +--org.zaval.lw.LwLine
All Implemented Interfaces:
Layoutable, LwComponent, Validationable

public class LwLine
extends LwCanvas

This is line component that can be used to render the specified line type placed vertically or horizontally. The supported line types set is the same to the border view types. The component can be used as the popup menu items separator.


Fields inherited from class org.zaval.lw.LwCanvas
bits, bottom, height, isValidValue, left, parent, psHeight, psWidth, right, skins, temporary, top, width, x, y
 
Constructor Summary
LwLine(int type)
          Constructs a line component with the specified type and the horizontal orientation.
LwLine(int type, int orient)
          Constructs a line component with the specified type and the given orientation.
 
Method Summary
protected  java.awt.Dimension calcPreferredSize()
          Gets the "pure" preferred size for this component.
 void paint(java.awt.Graphics g)
          Paints this component.
 
Methods inherited from class org.zaval.lw.LwCanvas
calcInsets, canHaveFocus, customize, cvp, getBackground, getBottom, getBounds, getHeight, getInsets, getLeft, getLocation, getLwComponentAt, getLwParent, getOrigin, getPreferredSize, getPSImpl, getRight, getSize, getTop, getViewMan, getVisiblePart, getWidth, getX, getY, hasFocus, invalidate, isEnabled, isOpaque, isValid, isVisible, recalc, repaint, repaint, repaint, requestFocus, setBackground, setEnabled, setInsets, setLocation, setLwParent, setOpaque, setPSSize, setSize, setViewMan, setVisible, update, validate, viewManChanged, vrp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LwLine

public LwLine(int type)
Constructs a line component with the specified type and the horizontal orientation.
Parameters:
type - the line type. As the line type should be used one of the border type constants (see the LwBorder class).

LwLine

public LwLine(int type,
              int orient)
Constructs a line component with the specified type and the given orientation.
Parameters:
type - the line type. As the line type should be used one of the border type constants (see the LwBorder class).
orient - the line orientation. Use the LwToolkit.HORIZONTAL or the LwToolkit.VERTICAL as the argument value.
Method Detail

calcPreferredSize

protected java.awt.Dimension calcPreferredSize()
Description copied from class: LwCanvas
Gets the "pure" preferred size for this component. The method should be overridden to define the component preferred size. Don't use insets to calculate the preferred size, the insets will be added with getPreferredSize method.
Overrides:
calcPreferredSize in class LwCanvas
Following copied from class: org.zaval.lw.LwCanvas
Returns:
a "pure" preferred size.

paint

public void paint(java.awt.Graphics g)
Description copied from class: LwCanvas
Paints this component. You can use the method to define a face of the component
Overrides:
paint in class LwCanvas
Following copied from class: org.zaval.lw.LwCanvas
Parameters:
g - the graphics context to be used for painting.


: up