JComponentPack 1.5.0

com.zfqjava.swing
Class LargeSizeModel

java.lang.Object
  extended by com.zfqjava.swing.AbstractSizeModel
      extended by com.zfqjava.swing.LargeSizeModel
All Implemented Interfaces:
SizeModel

public class LargeSizeModel
extends AbstractSizeModel


Field Summary
 
Fields inherited from class com.zfqjava.swing.AbstractSizeModel
listenerList
 
Constructor Summary
LargeSizeModel(String name, int n, int size)
          Creates a new instance of LargeSizeModel
 
Method Summary
 void addSizes(int from, int to, int size)
          Adds the size for the specified index area.
 void addSizes(int from, int to, int[] sizes)
          Adds the size for the specified index area.
 int getCount()
          Returns the count for this size model.
 int getIndex(int position)
          Returns the index at the specified position.
 String getName()
          Returns the name for this size model.
 int getPosition(int index)
          Return the position for the specified index.
 int getSize()
          Returns the size for this size model.
 int getSize(int index)
          Returns the size for ths specified index.
 boolean getSizeIsAdjusting(int index)
          Returns the size adjusting property for the specified index.
 int[] getSizes(int from, int to)
          Returns the size for the specified index area.
 boolean isFixedSize()
          Returns whether the size in this size model is fixed.
 boolean isVisible(int index)
          Returns the size visible property for the specified index.
 void removeSizes(int from, int to)
          Removes the sizes for the specified index.
 void setSize(int size)
          Sets the size for this size model.
 void setSize(int index, int size)
          Sets the size for the specified index.
 void setSizeIsAdjusting(int index, boolean isAdjusting)
          Sets the size adjusting property for the specified index.
 void setSizes(int from, int to, int size)
          Sets the size for the specified index area.
 void setSizes(int from, int to, int[] sizes)
          Sets the size for the specified index area.
 void setVisible(int index, boolean visible)
          Sets the size visible property for the specified index.
 
Methods inherited from class com.zfqjava.swing.AbstractSizeModel
addSizeModelListener, addUndoableEditListener, fireSizeAdded, fireSizeRemoved, fireSizeUpdated, fireUndoableEditHappened, fireVisibleChanged, getListeners, getSizeModelListeners, getUndoableEditListeners, removeSizeModelListener, removeUndoableEditListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LargeSizeModel

public LargeSizeModel(String name,
                      int n,
                      int size)
Creates a new instance of LargeSizeModel

Method Detail

getIndex

public int getIndex(int position)
Description copied from interface: SizeModel
Returns the index at the specified position.

Parameters:
position - the the specified position
Returns:
the index at the specified position

getPosition

public int getPosition(int index)
Description copied from interface: SizeModel
Return the position for the specified index.

Parameters:
index - the specified index
Returns:
the position for the specified index

addSizes

public void addSizes(int from,
                     int to,
                     int[] sizes)
Description copied from interface: SizeModel
Adds the size for the specified index area.

Parameters:
from - the from index
to - the to index
sizes - the size

addSizes

public void addSizes(int from,
                     int to,
                     int size)
Description copied from interface: SizeModel
Adds the size for the specified index area.

Parameters:
from - the from index
to - the to index
size - the size

removeSizes

public void removeSizes(int from,
                        int to)
Description copied from interface: SizeModel
Removes the sizes for the specified index.

Parameters:
from - the from index
to - the to index

setSize

public void setSize(int size)
Description copied from interface: SizeModel
Sets the size for this size model.

Parameters:
size - the size
See Also:
SizeModel.getSize()

setSize

public void setSize(int index,
                    int size)
Description copied from interface: SizeModel
Sets the size for the specified index.

Parameters:
index - the index
size - the size
See Also:
SizeModel.getSize()

setSizes

public void setSizes(int from,
                     int to,
                     int size)
Description copied from interface: SizeModel
Sets the size for the specified index area.

Parameters:
from - the from index
to - the to index
size - the size

setSizes

public void setSizes(int from,
                     int to,
                     int[] sizes)
Description copied from interface: SizeModel
Sets the size for the specified index area.

Parameters:
from - the from index
to - the to index
sizes - the size

getSize

public int getSize(int index)
Description copied from interface: SizeModel
Returns the size for ths specified index.

Parameters:
index - the index
Returns:
the size
See Also:
SizeModel.setSize(int)

getSizes

public int[] getSizes(int from,
                      int to)
Description copied from interface: SizeModel
Returns the size for the specified index area.

Returns:
the size for the specified index area

getSize

public int getSize()
Description copied from interface: SizeModel
Returns the size for this size model.

Returns:
the size
See Also:
SizeModel.setSize(int)

isVisible

public boolean isVisible(int index)
Description copied from interface: SizeModel
Returns the size visible property for the specified index.

Parameters:
index - the specified index
See Also:
SizeModel.setVisible(int, boolean)

setVisible

public void setVisible(int index,
                       boolean visible)
Description copied from interface: SizeModel
Sets the size visible property for the specified index.

Parameters:
index - the specified index
visible - the visible property
See Also:
SizeModel.isVisible(int)

getSizeIsAdjusting

public boolean getSizeIsAdjusting(int index)
Description copied from interface: SizeModel
Returns the size adjusting property for the specified index.

Parameters:
index - the specified index
See Also:
SizeModel.setSizeIsAdjusting(int, boolean)

setSizeIsAdjusting

public void setSizeIsAdjusting(int index,
                               boolean isAdjusting)
Description copied from interface: SizeModel
Sets the size adjusting property for the specified index.

Parameters:
index - the specified index
isAdjusting - the adjusting property
See Also:
SizeModel.getSizeIsAdjusting(int)

getCount

public int getCount()
Description copied from interface: SizeModel
Returns the count for this size model.

Returns:
the count for this size model

getName

public String getName()
Description copied from interface: SizeModel
Returns the name for this size model.

Returns:
the name for this size model

isFixedSize

public boolean isFixedSize()
Description copied from interface: SizeModel
Returns whether the size in this size model is fixed.

Returns:
whether the size in this size model is fixed

JComponentPack 1.5.0

Send your Feedback
JComponentPack 1.5.0
Copyright © 2001-2007 Extreme Component, Inc. All rights reserved.