Class AbstractTabRenderer
java.lang.Object
com.inductiveautomation.factorypmi.application.components.tabstrip.AbstractTabRenderer
- Direct Known Subclasses:
DemoStyleTabRenderer
,FolderStyleTabRenderer
,SimpleTabRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected boolean
protected int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected GradientPaint
buildGradient
(Rectangle bounds, TabComponent tab) protected abstract void
draw
(Graphics g, TabComponent tab) protected abstract void
drawHorizontal
(Graphics g, TabComponent tab) protected abstract void
drawVertical
(Graphics g, TabComponent tab) abstract int
protected int
abstract int
boolean
boolean
void
setDrawDividingLine
(boolean drawDividingLine) void
setGradientCapable
(boolean gradientCapable) void
setOrientation
(int orientation)
-
Field Details
-
drawDividingLine
protected boolean drawDividingLine -
gradientCapable
protected boolean gradientCapable -
orientation
protected int orientation
-
-
Constructor Details
-
AbstractTabRenderer
public AbstractTabRenderer()
-
-
Method Details
-
draw
-
drawHorizontal
-
drawVertical
-
getPadding
public abstract int getPadding() -
getLeadingSpace
public abstract int getLeadingSpace() -
getOrientation
protected int getOrientation()- Returns:
- the orientation
-
setOrientation
public void setOrientation(int orientation) - Parameters:
orientation
- the orientation to set
-
isDrawDividingLine
public boolean isDrawDividingLine() -
setDrawDividingLine
public void setDrawDividingLine(boolean drawDividingLine) -
isGradientCapable
public boolean isGradientCapable()- Returns:
- the gradientCapable
-
setGradientCapable
public void setGradientCapable(boolean gradientCapable) - Parameters:
gradientCapable
- the gradientCapable to set
-
buildGradient
-