public class IlvScaleBehavior extends IlvSingleBehavior
IlvScaleBehavior
is used to set the vertical or
horizontal scaling factor that is applied to a specific group element.Constructor and Description |
---|
IlvScaleBehavior(IlvInputStream in)
Reads the behavior from an
IlvInputStream stream. |
IlvScaleBehavior(IlvScaleBehavior source)
Creates a new behavior object by copying an existing one.
|
IlvScaleBehavior(String name,
String elementName,
String center,
boolean vertical)
Creates a new scale behavior object.
|
Modifier and Type | Method and Description |
---|---|
IlvBehavior |
copy()
Returns a copy of the behavior.
|
protected Object |
get(IlvGroup group,
String name)
Returns the value of the behavior object.
|
String |
getCenter()
Gets the
center parameter for this behavior object. |
String |
getElementName()
Gets the
elementName parameter for this behavior object. |
boolean |
isVertical()
Returns the
vertical parameter of this behavior. |
protected void |
set(IlvGroup group,
String name,
Object value)
Sets the scaling factor applied to the element specified by the
elementName passed to the constructor to the new
value . |
void |
setCenter(String center)
Sets the
center parameter for this behavior object. |
void |
setElementName(String elementName)
Sets the
elementName parameter for this behavior object. |
void |
setVertical(boolean vertical)
Sets the
vertical parameter of this behavior. |
String |
toString()
Returns a short text describing this behavior object.
|
void |
write(IlvOutputStream out)
Writes the behavior to an
IlvOutputStream . |
get, getName, getValueNames, set, setName
attach, detach, getParameter, isOutput, isReadable, isWritable
public IlvScaleBehavior(String name, String elementName, String center, boolean vertical)
name
- the name of the behavior object, which is the name of the value
that will be used to set the scaling factor applied to the
element.elementName
- the name of the element to be scaled.center
- specifies the horizontal or vertical coordinate of the center
point used to scale the element. This value can be either a direct
value, the name of another property, or an expression.vertical
- if true
, the element is scaled vertically. Otherwise,
it is scaled horizontally.public IlvScaleBehavior(IlvScaleBehavior source)
source
- the behavior object to be copied.public IlvScaleBehavior(IlvInputStream in) throws IlvReadFileException
IlvInputStream
stream. This
constructor must be called by the input constructors of subclasses.in
- The input stream.IlvReadFileException
- if the stream format is not correct.public void write(IlvOutputStream out) throws IOException
IlvOutputStream
.write
in interface IlvPersistentObject
write
in class IlvSingleBehavior
out
- The output stream.IOException
- thrown when an exception occurs during
the write operation for this object.public IlvBehavior copy()
copy
in class IlvBehavior
public String toString()
toString
in class IlvBehavior
public void setVertical(boolean vertical)
vertical
parameter of this behavior.public boolean isVertical()
vertical
parameter of this behavior.protected void set(IlvGroup group, String name, Object value) throws IlvValueException
elementName
passed to the constructor to the new
value
.set
in class IlvSingleBehavior
group
- the group to which this behavior object is attached.name
- the name of this behavior object.value
- the new value used to compute the scaling factor.IlvValueException
- if an error occurred while setting a property.IlvSingleBehavior.set(ilog.views.prototypes.IlvGroup,
java.lang.String[], java.lang.Object[], boolean[])
protected Object get(IlvGroup group, String name) throws IlvValueException
elementName
parameter passed to the constructor.get
in class IlvSingleBehavior
group
- the group to which this behavior object is attached.name
- the name of this behavior object.IlvValueException
- if an error occurred while reading a property.IlvSingleBehavior.get(ilog.views.prototypes.IlvGroup,
java.lang.String[], java.lang.Object[], boolean[])
public void setElementName(String elementName)
elementName
parameter for this behavior object.public String getElementName()
elementName
parameter for this behavior object.public void setCenter(String center)
center
parameter for this behavior object.public String getCenter()
center
parameter for this behavior object.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.