|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.view.tabular.TableStyle.SimpleStyle
public static class TableStyle.SimpleStyle
An immutable TableStyle
implementation that provides
constant values and stroke information specified at instance creation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface y.view.tabular.TableStyle |
---|
TableStyle.SimpleStyle, TableStyle.SimpleStyleDeserializer, TableStyle.SimpleStyleSerializer |
Constructor Summary | |
---|---|
TableStyle.SimpleStyle()
Creates a new SimpleStyle . |
|
TableStyle.SimpleStyle(LineType lineType,
java.awt.Color lineColor,
java.awt.Color fillColor)
Creates a new SimpleStyle for the specified line type and
colors. |
|
TableStyle.SimpleStyle(LineType borderLineType,
java.awt.Color borderLineColor,
java.awt.Color borderFillColor,
LineType lineType,
java.awt.Color lineColor,
java.awt.Color fillColor)
Creates a new SimpleStyle for the specified line types and
colors. |
Method Summary | |
---|---|
java.awt.Color |
getBorderFillColor(NodeRealizer context)
Returns the value of the style's borderFillColor property. |
java.awt.Color |
getBorderLineColor(NodeRealizer context)
Returns the value of the style's borderLineColor property. |
java.awt.Stroke |
getBorderLineType(NodeRealizer context)
Returns the value of the style's borderLineType property. |
java.awt.Color |
getFillColor(NodeRealizer context)
Returns the value of the style's fillColor property. |
java.awt.Color |
getLineColor(NodeRealizer context)
Returns the value of the style's lineColor property. |
java.awt.Stroke |
getLineType(NodeRealizer context)
Returns the value of the style's lineType property. |
void |
readExternal(java.io.ObjectInput in)
|
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableStyle.SimpleStyle()
SimpleStyle
.
Invoking this constructor is equivalent to:
new SimpleStyle(null, null, null, null, null, null)
Note: This constructor exist solely for the purpose of deserializing
SimpleStyle
instances from YGF data files.
public TableStyle.SimpleStyle(LineType lineType, java.awt.Color lineColor, java.awt.Color fillColor)
SimpleStyle
for the specified line type and
colors. Invoking this constructor is equivalent to:
new SimpleStyle(null, null, null, lineType, lineColor, fillColor)
lineType
- the value for the style's lineType
property.lineColor
- the value for the style's lineColor
property.fillColor
- the value for the style's fillColor
property.public TableStyle.SimpleStyle(LineType borderLineType, java.awt.Color borderLineColor, java.awt.Color borderFillColor, LineType lineType, java.awt.Color lineColor, java.awt.Color fillColor)
SimpleStyle
for the specified line types and
colors.
borderLineType
- the value for the style's borderLineType
property.borderLineColor
- the value for the style's borderLineColor
property.borderFillColor
- the value for the style's borderFillColor
property.lineType
- the value for the style's lineType
property.lineColor
- the value for the style's lineColor
property.fillColor
- the value for the style's fillColor
property.Method Detail |
---|
public java.awt.Stroke getBorderLineType(NodeRealizer context)
borderLineType
property.
getBorderLineType
in interface TableStyle
context
- ignored.
borderLineType
property.TableNodePainter.newDefaultInstance()
public java.awt.Color getBorderLineColor(NodeRealizer context)
borderLineColor
property.
getBorderLineColor
in interface TableStyle
context
- ignored.
borderLineColor
property.TableNodePainter.newDefaultInstance()
public java.awt.Color getBorderFillColor(NodeRealizer context)
borderFillColor
property.
getBorderFillColor
in interface TableStyle
context
- ignored.
borderFillColor
property.TableNodePainter.newDefaultInstance()
public java.awt.Stroke getLineType(NodeRealizer context)
lineType
property.
getLineType
in interface TableStyle
context
- ignored.
lineType
property.TableNodePainter.newDefaultInstance()
public java.awt.Color getLineColor(NodeRealizer context)
lineColor
property.
getLineColor
in interface TableStyle
context
- ignored.
lineColor
property.TableNodePainter.newDefaultInstance()
public java.awt.Color getFillColor(NodeRealizer context)
fillColor
property.
getFillColor
in interface TableStyle
context
- ignored.
fillColor
property.TableNodePainter.newDefaultInstance()
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |