|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.yworks.yfiles.server.graphml.flexio.compat.Stroke
Compatibility class for the yFiles FLEX GraphML format.
This class represents a basic stroke.
On Flex side the basic stroke is represented by mx.graphics.Stroke
or mx.graphics.SolidColorStroke
depending on the value set to
setUseSolidColorStroke(boolean)
.
Constructor Summary | |
Stroke()
|
|
Stroke(java.awt.Color color,
double weight)
|
Method Summary | |
java.awt.Color |
getColor()
Returns the stroke's color. |
java.util.Collection |
getSharedInstances()
Returns an Collection for objects that shall be shared. |
double |
getWeight()
Returns the stroke's weight. |
boolean |
isUseSolidColorStroke()
Returns whether the stroke should be deserialized as mx.graphics.SolidColorStroke
at Flex side.
|
void |
setColor(java.awt.Color color)
Sets the stroke's color. |
void |
setUseSolidColorStroke(boolean useSolidColorStroke)
Sets whether the stroke should be deserialized as mx.graphics.SolidColorStroke
at Flex side.
|
void |
setWeight(double weight)
Sets the stroke's weight. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Stroke(java.awt.Color color, double weight)
public Stroke()
Method Detail |
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- public double getWeight()
getWeight
in interface IStroke
public void setWeight(double weight)
setWeight
in interface IStroke
weight
- public boolean isUseSolidColorStroke()
mx.graphics.SolidColorStroke
at Flex side.
If set to true
the stroke will be deserialized as mx.graphics.SolidColorStroke
,
otherwise as mx.graphics.Stroke
.
Default is false
.
true
if the stroke should be deserialized as mx.graphics.SolidColorStroke
.public void setUseSolidColorStroke(boolean useSolidColorStroke)
mx.graphics.SolidColorStroke
at Flex side.
If set to true
the stroke will be deserialized as mx.graphics.SolidColorStroke
,
otherwise as mx.graphics.Stroke
.
Default is false
.
useSolidColorStroke
- true
if the stroke should be deserialized as
mx.graphics.SolidColorStroke
.public java.util.Collection getSharedInstances()
ISharedInstanceProvider
Collection
for objects that shall be shared.
getSharedInstances
in interface ISharedInstanceProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |