Ja.NET Standard Edition 5.0

Documentation API Specification

Contents

SynthStyle Class Reference

Inherited by XMLSynthStyle.

List of all members.


Detailed Description

SynthStyle contains all the information about component drawing.

Public Member Functions

Object get (SynthContext context, Object key)
 The default implementation returns null.
boolean getBoolean (SynthContext context, Object key, boolean defaultValue)
 Returns boolean value from the properties table or the default value.
Color getColor (SynthContext context, ColorType type)
Font getFont (SynthContext context)
Icon getIcon (SynthContext context, Object key)
 The default implementation just casts Object returned by get(Object, key method).
Insets getInsets (SynthContext context, Insets modified)
 The default implementation returns empty insets.
int getInt (SynthContext context, Object key, int defaultValue)
SynthPainter getPainter (SynthContext context)
String getString (SynthContext context, Object key, String defaultValue)
void installDefaults (SynthContext context)
 The default implementation is empty.
boolean isOpaque (SynthContext context)
void uninstallDefaults (SynthContext context)
 The default implementation is empty.
SynthGraphicsUtils getGraphicsUtils (@SuppressWarnings("unused") SynthContext context)

Protected Member Functions

abstract Font getFontForState (SynthContext context)
abstract Color getColorForState (SynthContext context, ColorType type)

Static Package Attributes

static final SynthStyle NULL_STYLE
 Null style used by StyleFactory to represent styles that not found.

Private Attributes

boolean isOpaque = true
 The default isOpaque value.

Member Function Documentation

Object get ( SynthContext  context,
Object  key 
)

The default implementation returns null.

boolean getBoolean ( SynthContext  context,
Object  key,
boolean  defaultValue 
)

Returns boolean value from the properties table or the default value.

Color getColor ( SynthContext  context,
ColorType  type 
)

Font getFont ( SynthContext  context  ) 

abstract Font getFontForState ( SynthContext  context  )  [protected, pure virtual]

Implemented in XMLSynthStyle.

Icon getIcon ( SynthContext  context,
Object  key 
)

The default implementation just casts Object returned by get(Object, key method).

Reimplemented in XMLSynthStyle.

Insets getInsets ( SynthContext  context,
Insets  modified 
)

The default implementation returns empty insets.

Reimplemented in XMLSynthStyle.

int getInt ( SynthContext  context,
Object  key,
int  defaultValue 
)

SynthPainter getPainter ( SynthContext  context  ) 

Returns:
The default implementation returns null

Reimplemented in XMLSynthStyle.

String getString ( SynthContext  context,
Object  key,
String  defaultValue 
)

void installDefaults ( SynthContext  context  ) 

The default implementation is empty.

boolean isOpaque ( SynthContext  context  ) 

Reimplemented in XMLSynthStyle.

void uninstallDefaults ( SynthContext  context  ) 

The default implementation is empty.

abstract Color getColorForState ( SynthContext  context,
ColorType  type 
) [protected, pure virtual]

Implemented in XMLSynthStyle.

SynthGraphicsUtils getGraphicsUtils ( @SuppressWarnings("unused") SynthContext  context  ) 

Returns:
GraphicsUtils used for specified context. The default implementation returns default GraphicsUtils for any context.


Member Data Documentation

final SynthStyle NULL_STYLE [static, package]

Initial value:

 new SynthStyle() {

        @Override
        public SynthPainter getPainter(SynthContext context) {
            return new SynthPainter() {
                
            };
        }

        @Override
        protected Color getColorForState(SynthContext context, ColorType type) {
            return null;
        }

        @Override
        protected Font getFontForState(SynthContext context) {
            return null;
        }
    }
Null style used by StyleFactory to represent styles that not found.

boolean isOpaque = true [private]

The default isOpaque value.

Reimplemented in XMLSynthStyle.