org.jplot2d.swing.proptable.property
Class MainProperty<T>
- java.lang.Object
-
- org.jplot2d.swing.proptable.property.MainProperty<T>
-
- Type Parameters:
T- the value type
- All Implemented Interfaces:
- Property<T>
- Direct Known Subclasses:
- AxisTypeProperty, BasicStrokeProperty, Dimension2DProperty, DimensionProperty, Insets2DProperty, Point2DProperty, PointProperty, RangeProperty, SizeModeProperty, SymbolShapeProperty
public abstract class MainProperty<T> extends java.lang.Object implements Property<T>
Main property who has value and can read from / write to a engine object
-
-
Constructor Summary
Constructors Constructor and Description MainProperty()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description voidaddPropertyChangeListener(java.beans.PropertyChangeListener listener)java.lang.Object[]getAvailableValues()If the returned value is notnull, The table will use a JComboBox to edit this property.Property<?>[]getSubProperties()TgetValue()abstract voidreadFromObject(java.lang.Object object)Load property from the given object.voidremovePropertyChangeListener(java.beans.PropertyChangeListener listener)voidsetValue(T value)java.lang.StringtoString()abstract voidwriteToObject(java.lang.Object object)Write property to the given object.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jplot2d.swing.proptable.property.Property
getDisplayDigits, getDisplayName, getName, getShortDescription, getType, isEditable
-
-
-
-
Method Detail
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
-
getSubProperties
public Property<?>[] getSubProperties()
- Specified by:
getSubPropertiesin interfaceProperty<T>
-
readFromObject
public abstract void readFromObject(java.lang.Object object)
Load property from the given object.- Parameters:
object-- Throws:
java.lang.Throwable
-
writeToObject
public abstract void writeToObject(java.lang.Object object) throws java.lang.ThrowableWrite property to the given object.- Parameters:
object-- Throws:
java.lang.Throwable
-
getAvailableValues
public java.lang.Object[] getAvailableValues()
Description copied from interface:PropertyIf the returned value is notnull, The table will use a JComboBox to edit this property.- Specified by:
getAvailableValuesin interfaceProperty<T>- Returns:
- all available values
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG